Button for searching current source file in target entir disk

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Toniq
Junior Member
Junior Member
Posts: 3
Joined: 2024-10-28, 11:00 UTC

Button for searching current source file in target entir disk

Post by *Toniq »

Hi,
Please whow to create a button for searching current file from left source panel in right target panel entir disk.
And using 'Everything'
Thanks
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Button for searching current source file in target entir disk

Post by *Horst.Epp »

This button searches your whole system for the file under the cursor using Everything.
It's for Everything 1.5
You have to adapt the path to Everything.

Code: Select all

TOTALCMD#BAR#DATA
C:\Tools\Everything\Everything64.exe
-s nopath:exact:#quote:#[basename:"%S1"#]:
C:\Tools\Everything\Everything64.exe
Everything Search for selected file

0
-1
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Toniq
Junior Member
Junior Member
Posts: 3
Joined: 2024-10-28, 11:00 UTC

Re: Button for searching current source file in target entir disk

Post by *Toniq »

Thank you Horst.Epp
So i created a button with the following commands:
cm_copynamestoclip, cm_loadselectionfromclip, cm_FocusRight, cm_GoToRoot, cm_SearchForInCurdir p:\, cm_loadselectionfromclip
But about cm_SearchForInCurdir how to automatically copy the file name to "Search for:" without manually doing Ctrl+V
User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Button for searching current source file in target entir disk

Post by *petermad »

But about cm_SearchForInCurdir how to automatically copy the file name to "Search for:" without manually doing Ctrl+V
That is the problem - it is currently not possible without external tools.

BTW you could replace:

Code: Select all

cm_GoToRoot, cm_SearchForInCurdir p:\
with this em_command:

Code: Select all

[em_SearchInRoot]
cmd=cm_SearchForInCurdir
param=%B+0
Then it will work in the root of any drive, not just drive P:
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Toniq
Junior Member
Junior Member
Posts: 3
Joined: 2024-10-28, 11:00 UTC

Re: Button for searching current source file in target entir disk

Post by *Toniq »

Thank you Easy Rider
Ok i understand, i will try with a mix from TC hotkeys and Autohotkey
Post Reply