Page 1 of 1
A nightmare to make the following run in a button
Posted: 28 Feb 2022 20:20
by Horst
I'm using a button in TC with the following command line:
C:\Tools\Everything\Everything64.exe -s nopath:exact:#quote:#[basename:"%S1"#]:
This button is easy in Total Commander, the %S1 is replaced by the current file name in its file list.
Everything returns in its GUI all places where the exact file name is found.
The Everything syntax is using its preprocessor and therefore rather cryptic.
Re: A nightmare to make the following run in a button
Posted: 28 Feb 2022 20:23
by highend
Show a screenshot of Everything with search results and the search bar fully visible
Re: A nightmare to make the following run in a button
Posted: 28 Feb 2022 20:26
by Horst
Thats the GUI result
Screenshot - 28.02.2022 , 20_24_50.png
Re: A nightmare to make the following run in a button
Posted: 28 Feb 2022 20:34
by highend
Something like that?
Code: Select all
run """C:\Tools\Everything\Everything64.exe"" -s nopath:exact:#quote:#[basename:""<curitem>""";
Re: A nightmare to make the following run in a button
Posted: 28 Feb 2022 20:45
by Horst
Yes that works
I have added the missing #]: at the end in your version
I tried something similar but there where always "Dubious syntax" errors.
I deleted that button so I can't say what the problem was.
But you solved it, thanks for the help

Re: A nightmare to make the following run in a button
Posted: 28 Feb 2022 21:26
by highend
You should post the final command for all others that may be interested...
Re: A nightmare to make the following run in a button
Posted: 01 Mar 2022 08:51
by Horst
Thats the final command.
Its yours with the missing part on the end.
run """C:\Tools\Everything\Everything64.exe"" -s nopath:exact:#quote:#[basename:""<curitem>""#]:";
Re: A nightmare to make the following run in a button
Posted: 01 Mar 2022 09:00
by admin
Don't forget the
lax() function:
Code: Select all
echo lax("C:\Tools\Everything\Everything64.exe" -s nopath:exact:#quote:#[basename:"<curitem>"#]:);
Re: A nightmare to make the following run in a button
Posted: 01 Mar 2022 11:03
by Horst
I like that lax function, its so much easier to make buttons
Thanks for the tip.