A nightmare to make the following run in a button

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Horst
Posts: 1419
Joined: 24 Jan 2021 12:27
Location: Germany

A nightmare to make the following run in a button

Post 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.
Windows 11 Home, Version 26H2 (OS Build 26300.10075)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1425b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: A nightmare to make the following run in a button

Post by highend »

Show a screenshot of Everything with search results and the search bar fully visible
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1419
Joined: 24 Jan 2021 12:27
Location: Germany

Re: A nightmare to make the following run in a button

Post by Horst »

Thats the GUI result
Screenshot - 28.02.2022 , 20_24_50.png
To see the attached files, you need to log into the forum.
Windows 11 Home, Version 26H2 (OS Build 26300.10075)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1425b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: A nightmare to make the following run in a button

Post by highend »

Something like that?

Code: Select all

run """C:\Tools\Everything\Everything64.exe"" -s nopath:exact:#quote:#[basename:""<curitem>""";
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1419
Joined: 24 Jan 2021 12:27
Location: Germany

Re: A nightmare to make the following run in a button

Post by Horst »

Yes that works 8)
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 :D
Windows 11 Home, Version 26H2 (OS Build 26300.10075)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1425b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: A nightmare to make the following run in a button

Post by highend »

You should post the final command for all others that may be interested...
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1419
Joined: 24 Jan 2021 12:27
Location: Germany

Re: A nightmare to make the following run in a button

Post 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>""#]:";
Windows 11 Home, Version 26H2 (OS Build 26300.10075)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1425b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta

admin
Site Admin
Posts: 67311
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A nightmare to make the following run in a button

Post by admin »

Don't forget the lax() function:

Code: Select all

echo lax("C:\Tools\Everything\Everything64.exe" -s nopath:exact:#quote:#[basename:"<curitem>"#]:);

Horst
Posts: 1419
Joined: 24 Jan 2021 12:27
Location: Germany

Re: A nightmare to make the following run in a button

Post by Horst »

I like that lax function, its so much easier to make buttons :D
Thanks for the tip.
Windows 11 Home, Version 26H2 (OS Build 26300.10075)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1425b (x64), Everything Toolbar 3.5, Listary Pro 7.1.0.47 beta

Post Reply