'Search for' in standalone search

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
NotNull
Senior Member
Senior Member
Posts: 266
Joined: 2019-11-25, 20:43 UTC
Location: NL

'Search for' in standalone search

Post by *NotNull »

Hidden in this (German) forum thread was @Stefan2's observation that totalcmd.exe /S=F "searchtext" does open the "Find Files" dialog "stand-alone", but can only be used to fill the "Search In" field.


IS there somehow an option to fill the "Search For" as well as "Serarch In" field using this method? Or just the "Search In" field (without defining the "Search For" field)?
(other than defining a previous search 'through the backdoor'?)
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: 'Search for' in standalone search

Post by *petermad »

If you use a button like this:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE% /i="%COMMANDER_INI%" /S=F
%Z %P
wcmicons.dll,47
Find Files (separate instance)

0
-1

it works fully - all fields in the dialog can be filled out and the "Search in" field is prefilled with the current directory
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
If you are talking about automatically filling the "Search for" from the command line, then it is not possible - but you can pass a saved search with the L parameter: /S=F:L<saved search name>
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: 'Search for' in standalone search

Post by *Fla$her »

Overquoting is evil! 👎
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: 'Search for' in standalone search

Post by *Stefan2 »

petermad wrote: 2023-02-08, 23:58 UTC
all fields in the dialog can be filled out

That is exactly the point.


There was the request to use the search automated with "Search For" as parameter

%COMMANDER_EXE% /S=F <FOR: rolling stones>

%COMMANDER_EXE% /S=F <TEXT: beatles>

%COMMANDER_EXE% /S=F "c:\temp\mp5" <FOR: abba>





 
NotNull
Senior Member
Senior Member
Posts: 266
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: 'Search for' in standalone search

Post by *NotNull »

petermad wrote: 2023-02-08, 23:58 UTC If you are talking about automatically filling the "Search for" from the command line, then it is not possible - but you can pass a saved search with the L parameter: /S=F:L<saved search name>
Thanks!
(that is what I had in mind with "through the backdoor": add a saved search on the fly to the ini and use that)

Oh well ...
Post Reply