Page 1 of 1

how to run a user button, path with space?

Posted: 08 Sep 2021 08:31
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

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

Posted: 08 Sep 2021 08:34
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"

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

Posted: 08 Sep 2021 08:38
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.

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

Posted: 09 Sep 2021 04:47
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"

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

Posted: 09 Sep 2021 07:16
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""";
...

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

Posted: 09 Sep 2021 07:35
by lanmanck
:tup: :tup: :tup: