TC + %PROCESSOR_ARCHITECTURE% + Win9X
Moderators: sheep, Hacker, Stefan2, white
TC + %PROCESSOR_ARCHITECTURE% + Win9X
Confirmed for 9.22a and actual 9.5 betas. Older versions may be affected too, did not test them.
Win9X: TC does not support %PROCESSOR_ARCHITECTURE% variable for programs' paths in wincmd.ini.
Error: Path not found.
WinXP/7/10: TC supports %PROCESSOR_ARCHITECTURE% variable for programs' paths in wincmd.ini,
but does not support %PROCESSOR_ARCHITECTURE:~3,2% there.
Bug or feature?
Could you fix that?
Win9X: TC does not support %PROCESSOR_ARCHITECTURE% variable for programs' paths in wincmd.ini.
Error: Path not found.
WinXP/7/10: TC supports %PROCESSOR_ARCHITECTURE% variable for programs' paths in wincmd.ini,
but does not support %PROCESSOR_ARCHITECTURE:~3,2% there.
Bug or feature?
Could you fix that?
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
Win 9x does only come in 32bit https://en.wikipedia.org/wiki/Timeline_of_Microsoft_Windows - so I guess %PROCESSOR_ARCHITECTURE% is not supported by Windows. Have you checked with the DOS SET command, that there is a %PROCESSOR_ARCHITECTURE% in yor win9x environment?
viewtopic.php?f=3&t=45194&p=314727&hilit=%25PROCESSOR_ARCHITECTURE%3A~#p314727
This is a known limitation:but does not support %PROCESSOR_ARCHITECTURE:~3,2% there.
viewtopic.php?f=3&t=45194&p=314727&hilit=%25PROCESSOR_ARCHITECTURE%3A~#p314727
License #524 (1994)
Danish Total Commander Translator
TC 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar
Danish Total Commander Translator
TC 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 38395
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
%PROCESSOR_ARCHITECTURE% is an environment variable defined by Windows, NOT by Total Commander. It's not defined on all Windows versions.Win9X: TC does not support %PROCESSOR_ARCHITECTURE% variable for programs' paths in wincmd.ini.
Author of Total Commander
http://www.ghisler.com
http://www.ghisler.com
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
I understand.
What about %PROCESSOR_ARCHITECTURE:~3,2% for XP and newer?
What about %PROCESSOR_ARCHITECTURE:~3,2% for XP and newer?
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
2MaxX
What about it? A syntax like this is specific to CMD, and TC doesn't support it, and IIRC Ghisler said somewhere that it won't support it in the future.
Regards
Dalai
What about it? A syntax like this is specific to CMD, and TC doesn't support it, and IIRC Ghisler said somewhere that it won't support it in the future.
Regards
Dalai
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
2Dalai
Also several workarounds in that thread.
Actually he said he would put it on his to-do list: viewtopic.php?p=320433#p320433IIRC Ghisler said somewhere that it won't support it in the future.
Also several workarounds in that thread.
License #524 (1994)
Danish Total Commander Translator
TC 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar
Danish Total Commander Translator
TC 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 38395
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
I will add it to the next beta, thanks for reminding me.What about %PROCESSOR_ARCHITECTURE:~3,2% for XP and newer?
Author of Total Commander
http://www.ghisler.com
http://www.ghisler.com
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
history.txt:

I can confirm that a parameter like %PROCESSOR_ARCHITECTURE:~3,2% now works in the command field for buttons, and em_commands in TC 9.5b725.11.19 Added: Support substrings from environment variables, e.g. %variable:~2,3% skips 2 characters and then keeps 3. Negative variables are counted from the back of the string (32/64)

License #524 (1994)
Danish Total Commander Translator
TC 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar
Danish Total Commander Translator
TC 9.5b8 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
Editor=%COMMANDER_PATH%\Plugins\exe\AkelPad%PROCESSOR_ARCHITECTURE:~3,2%.exe
Looks like it works on Win 7 SP1 x32. Later I want to test on x64.
Such a good feature. I'm glad.
I mean that %COMMANDER_PATH%\Plugins\exe\AkelPad%PROCESSOR_ARCHITECTURE:~3,2%.exe becomes "C:\Totalcmd\Plugins\exe\AkelPad.exe" for Win9X, not the "C:\Totalcmd\Plugins\exe\AkelPad%PROCESSOR_ARCHITECTURE:~3,2%.exe". That allows us to have only Akelpad.exe and Akelpad64.exe and one config line for all OS.
That would be great.
Looks like it works on Win 7 SP1 x32. Later I want to test on x64.
Such a good feature. I'm glad.
Could you add some config parameter to skip %PROCESSOR_ARCHITECTURE% and(or) %PROCESSOR_ARCHITECTURE:~3,2% in wincmd.ini on Win9X? Just via something like "SkipProcArch=1" or similar.ghisler(Author) wrote: ↑2019-11-19, 15:22 UTC%PROCESSOR_ARCHITECTURE% is an environment variable defined by Windows, NOT by Total Commander. It's not defined on all Windows versions.
I mean that %COMMANDER_PATH%\Plugins\exe\AkelPad%PROCESSOR_ARCHITECTURE:~3,2%.exe becomes "C:\Totalcmd\Plugins\exe\AkelPad.exe" for Win9X, not the "C:\Totalcmd\Plugins\exe\AkelPad%PROCESSOR_ARCHITECTURE:~3,2%.exe". That allows us to have only Akelpad.exe and Akelpad64.exe and one config line for all OS.
That would be great.
- ghisler(Author)
- Site Admin
- Posts: 38395
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
Why not just set PROCESSOR_ARCHITECTURE yourself as a custom environment variable in Windows 9x?
Author of Total Commander
http://www.ghisler.com
http://www.ghisler.com
Re: TC + %PROCESSOR_ARCHITECTURE% + Win9X
Hm.. Did not think this way.
Thanks.
Thanks.