cmd64.exe is 32-bit
Verfasst: 22 Jun 2012, 19:49
I needed to call the 64-bit version of rundll32.exe for a deinstall script, but couldn't get it to work.
It took me a while to find out that the cmd64.exe file is the same as the one in c:\windows\systemWOW64\
Apparently if you copy c:\windows\system32\cmd.exe tot c:\windows\cmd64.exe from a 32-bit program the cmd.exe copied is actually the one from c:\windows\systemWOW64\
I copied the c:\windows\system32\cmd.exe with a 64-bit windows explorer to c:\windows\cmd64.exe
This worked. The 64-bit cmd.exe is around 580 kB, and the 32-bit version around 370 kB.
Another solution is to make a link to the 64-bit cmd.exe
As we are using Windows XP x64, which comes without mklink I used fsutil.
fsutil hardlink create c:\windows\cmdx64.exe c:\windows\system32\cmd.exe
I think this needs to be run from a 64-bit cmd.exe, otherwise you will hardlink to c:\windows\systemWOW64\cmd.exe
This also works.
It took me a while to find out that the cmd64.exe file is the same as the one in c:\windows\systemWOW64\
Apparently if you copy c:\windows\system32\cmd.exe tot c:\windows\cmd64.exe from a 32-bit program the cmd.exe copied is actually the one from c:\windows\systemWOW64\
I copied the c:\windows\system32\cmd.exe with a 64-bit windows explorer to c:\windows\cmd64.exe
This worked. The 64-bit cmd.exe is around 580 kB, and the 32-bit version around 370 kB.
Another solution is to make a link to the 64-bit cmd.exe
As we are using Windows XP x64, which comes without mklink I used fsutil.
fsutil hardlink create c:\windows\cmdx64.exe c:\windows\system32\cmd.exe
I think this needs to be run from a 64-bit cmd.exe, otherwise you will hardlink to c:\windows\systemWOW64\cmd.exe
This also works.