Page 1 of 1

TC 9.51: Not full support of %PROCESSOR_ARCHITECTURE:~3,2% in wincmd.ini

Posted: 2020-07-02, 06:44 UTC
by MaxX
TC 9.51

Wincmd.ini [Configuration]
Both work:
Editor=%COMMANDER_PATH%\AkelPad%PROCESSOR_ARCHITECTURE%\AkelPad.exe
Editor=%COMMANDER_PATH%\AkelPad%PROCESSOR_ARCHITECTURE:~3,2%\AkelPad.exe

Wincmd.ini [user]
Both work:
cmd2=%COMMANDER_PATH%\NTLinksMaker.exe
cmd2=%COMMANDER_PATH%\NTLinksMaker%PROCESSOR_ARCHITECTURE:~3,2%.exe

But

Wincmd.ini [Packer]
Works:
RAR="%COMMANDER_PATH%\Rar%PROCESSOR_ARCHITECTURE%.exe" -ma5 -m5 -s -t -qo+
Does NOT work:
RAR="%COMMANDER_PATH%\Rar%PROCESSOR_ARCHITECTURE:~3,2%.exe" -ma5 -m5 -s -t -qo+

Re: TC 9.51: Not full support of %PROCESSOR_ARCHITECTURE:~3,2% in wincmd.ini

Posted: 2020-07-03, 16:44 UTC
by ghisler(Author)
I haven't checked it yet, but maybe I'm not resolving the variables in the second case and just pass them to the system?