how to pass an argument to a command ID

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
JimXYUser
Posts: 23
Joined: 23 Nov 2012 00:26

how to pass an argument to a command ID

Post by JimXYUser »

In script, I would like to use a command ID #167 (copy here as) and pass in an argument "MyFileName1.txt" then let it execute. I can then put the script into a button.

e.g.

Code: Select all

#167 > "MyFileName1.txt" //not working

How do i pass an argument to #167?

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

Re: how to pass an argument to a command ID

Post by highend »

How do i pass an argument to #167?
You can't.

Not sure if that's your source or destination file...

Code: Select all

copyas "MyFileName1.txt", , "<curitem>";
Would copy the current selected item to a new file named "MyFileName1.txt" in the same folder...
One of my scripts helped you out? Please donate via Paypal

JimXYUser
Posts: 23
Joined: 23 Nov 2012 00:26

Re: how to pass an argument to a command ID

Post by JimXYUser »

that is my destination file. btw is there a way to pass argument to any command ID (beside copy as) that need user input?

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

Re: how to pass an argument to a command ID

Post by highend »

No.
One of my scripts helped you out? Please donate via Paypal

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

Re: how to pass an argument to a command ID

Post by admin »

Calling a command ID is identical to clicking a menu command or pressing a keyboard shortcut. You cannot pass an argument here neither.

Post Reply