Hi there
I am trying to launch an application using a command line option from the catalog. However I am having a problem passing the current filename as a parameter. I understand that %1 ought to do it or <curitem> however neither seem to work. I've attached the example I'm using. Can anyone point me in the right direction?
thanks
Paul
Passing current filename into Catalog
-
acheton
- Posts: 293
- Joined: 27 Jul 2010 23:58
- Location: XY 64bit, Win 11 at 100%
Passing current filename into Catalog
To see the attached files, you need to log into the forum.
-
highend
- Posts: 14956
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Passing current filename into Catalog
There is no need to use a placeholder for arguments, they are appended to the end of the application call automatically.
So try to use
and if something like this doesn't fit the e.g. order of the arguments, call a script that get's the selected items itself and do whatever is necessary with them...
So try to use
"...veracrypt..." /letter x /volume and if something like this doesn't fit the e.g. order of the arguments, call a script that get's the selected items itself and do whatever is necessary with them...
One of my scripts helped you out? Please donate via Paypal
-
acheton
- Posts: 293
- Joined: 27 Jul 2010 23:58
- Location: XY 64bit, Win 11 at 100%
Re: Passing current filename into Catalog
Thanks for the reply, the first method doesn't work, sadly. I've converted to a script using run:
run '"C:\Program Files\VeraCrypt\VeraCrypt.exe" /letter x /volume <curitem>'
This executes the program however <curitem> is not substituted by the currently selected item. any pointers please?
run '"C:\Program Files\VeraCrypt\VeraCrypt.exe" /letter x /volume <curitem>'
This executes the program however <curitem> is not substituted by the currently selected item. any pointers please?
-
highend
- Posts: 14956
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Passing current filename into Catalog
Code: Select all
$item = <get SelectedItemsPathNames>; run """C:\Program Files\VeraCrypt\VeraCrypt.exe"" /letter x /volume ""$item""";
One of my scripts helped you out? Please donate via Paypal
-
acheton
- Posts: 293
- Joined: 27 Jul 2010 23:58
- Location: XY 64bit, Win 11 at 100%
Re: Passing current filename into Catalog
Thanks Highend, that's great.
XYplorer Beta Club