Hi all,
Does anyone know why the run command does not resolve environment variables?
For example:
Changing "%PROGRAMFILES%" to "C:\Program Files" works fine.
Curious.
Cheers
John
Environment variables not resolved in the run command
Environment variables not resolved in the run command
Windows 11 Pro x64
XYplorer 28.80.0703 x64 beta
XYplorer 28.80.0703 x64 beta
Re: Environment variables not resolved in the run command
Single quotes = No variable resolved^^
One of my scripts helped you out? Please donate via Paypal
Re: Environment variables not resolved in the run command
Ahh I get it thanks. 
Interesting that the same does not apply to openwith.
For instance this works:
Interesting that the same does not apply to openwith.
For instance this works:
Code: Select all
openwith '"%DATA_DRIVE%\msys64\usr\bin\bash.exe" "%PROGRAMFILES%\bin\media_info.sh" -P -d"<curpath>"', s;Windows 11 Pro x64
XYplorer 28.80.0703 x64 beta
XYplorer 28.80.0703 x64 beta
-
admin
- Site Admin
- Posts: 65024
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Environment variables not resolved in the run command
Yep, there's an inconsistency. I could fix it but that would probably break scripts.
FAQ | XY News RSS | XY X
XYplorer Beta Club