Portable Path and Named Drive not working for me

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Redbeard
Posts: 7
Joined: 08 Oct 2009 04:21

Portable Path and Named Drive not working for me

Post by Redbeard »

Simplified: I have a toolbar button that launches the following command:

Code: Select all

run "?:\Utilities\7-ZipPortable\7-ZipPortable.exe"
which gives me the error:

Code: Select all

"The system cannot find the file specified.
File: ?:\Utilities\7-ZipPortable\7-ZipPortable.exe
Parameters: 
run
?:\Utilities\7-ZipPortable\7-ZipPortable.exe"
Shouldn't that work using ?: for the drive letter xyplorer is running from?
7-ZipPortable.exe does exist at that path
I'm using the latest version of Xyplorer

I've also tried:

Code: Select all

run "NamedDrive:\Utilities\7-ZipPortable\7-ZipPortable.exe"
which also gives me an error even though I have Support volume labels in paths enabled. What am I doing wrong?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Portable Path and Named Drive not working for me

Post by bdeshi »

RUN reference wrote:command: Anything that works in Windows Start | Run, usually a module name plus (optionally) arguments
See, it's analogous to Windows' Run, nothing XYplorer-specific.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Portable Path and Named Drive not working for me

Post by highend »

Use <xydrive>, not "?". "?" would be literal, not a variable.

Help file, Advanced Topics - Variables to see the rest of XY variables.
One of my scripts helped you out? Please donate via Paypal

Post Reply