Page 1 of 1

Environment variables not resolved in the run command

Posted: 07 Nov 2025 23:16
by JohnM
Hi all,

Does anyone know why the run command does not resolve environment variables?

For example:
Run command.PNG
Run command.PNG (22.25 KiB) Viewed 524 times

Changing "%PROGRAMFILES%" to "C:\Program Files" works fine.

Curious.

Cheers
John

Re: Environment variables not resolved in the run command

Posted: 08 Nov 2025 00:10
by highend
Single quotes = No variable resolved^^

Re: Environment variables not resolved in the run command

Posted: 08 Nov 2025 01:12
by JohnM
Ahh I get it thanks. :tup:

Interesting that the same does not apply to openwith. :eh:
For instance this works:

Code: Select all

openwith '"%DATA_DRIVE%\msys64\usr\bin\bash.exe" "%PROGRAMFILES%\bin\media_info.sh" -P -d"<curpath>"', s;

Re: Environment variables not resolved in the run command

Posted: 11 Nov 2025 08:05
by admin
Yep, there's an inconsistency. I could fix it but that would probably break scripts.