how to run a user button, path with space?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
lanmanck
Posts: 4
Joined: 08 Sep 2021 08:19

how to run a user button, path with space?

Post by lanmanck »

first edit the toolbar ,and add a user button.
edit the button , and input content in "click on left button":

Code: Select all

run "D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"
the path has space, when click, it says cannot find the file:

Image

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

Re: how to run a user button, path with space?

Post by highend »

Code: Select all

run '"D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"'
run """D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"""
runq "D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"
One of my scripts helped you out? Please donate via Paypal

lanmanck
Posts: 4
Joined: 08 Sep 2021 08:19

Re: how to run a user button, path with space?

Post by lanmanck »

highend wrote: ↑08 Sep 2021 08:34

Code: Select all

run '"D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"'
run """D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"""
runq "D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"
it works , thank you.
seems total commander has convinent way to launch a app, just drag the exe file to toolbar and done.

lanmanck
Posts: 4
Joined: 08 Sep 2021 08:19

Re: how to run a user button, path with space?

Post by lanmanck »

highend wrote: ↑08 Sep 2021 08:34

Code: Select all

run '"D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"'
run """D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"""
runq "D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"
Hi, and how to specify the arguments?
for example :

D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe --dir="c:\abc"

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

Re: how to run a user button, path with space?

Post by highend »

Code: Select all

run '"D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe" --dir="c:\abc"';
run """D:\Softback\TreeSize Free 4.4.0.508\TreeSizeFree.exe"" --dir=""c:\abc""";
...
One of my scripts helped you out? Please donate via Paypal

lanmanck
Posts: 4
Joined: 08 Sep 2021 08:19

Re: how to run a user button, path with space?

Post by lanmanck »

:tup: :tup: :tup:

Post Reply