%ProgramFiles% environment variable under x64

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Ultraplayer
Junior Member
Junior Member
Posts: 4
Joined: 2011-05-26, 08:19 UTC

%ProgramFiles% environment variable under x64

Post by *Ultraplayer »

Under windows x64 global variables (by default) is:
%ProgramFiles%=C:\Program Files
%ProgramFiles(x86)%=C:\Program Files (x86)
but, when I run any .bat/.cmd file (or) create a button with a simple command like:

Code: Select all

cd %ProgramFiles%
...total Commander changes directory to "C:\Program Files (x86)" :(
i.e. Total Commander do not recognize difference between %ProgramFiles(x86)% and %ProgramFiles% variables under windows x64 bit system.

TC: 7.56a
Windows: MS-Windows 7 Ultimate x64 SP1
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Open cmd.exe from Explorer and from TC and execute set command, you'll see that environment variables are different for 32-bit and 64-bit processes.
Ultraplayer
Junior Member
Junior Member
Posts: 4
Joined: 2011-05-26, 08:19 UTC

Post by *Ultraplayer »

I seen it already (why do you think I'm writing here).
So, this cannot be fixed?
TCMDX64.EXE - is a fake?
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Ultraplayer wrote:TCMDX64.EXE - is a fake?
It's not a fake, it's just what it is:
descript.ion wrote:64-bit shell extension support for right click context menu
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply