I'm tring to create some directories (dirs) using a .bat file. At the cmd.exe, I can create the dirs normally, but when runing the commands inside a .bat file, for some odd reason, the dirs are created inside the SysWOW64 directory.
Win 7 x64 SP1 PRO
How can I tell Windows to create the dirs at the correct path?
mkdir C:\Windows\System32\oobe\info mkdir C:\Windows\System32\oobe\info\backgrounds
Inside bat, results in: C:\Windows\SysWOW64\System32\oobe\info
Using a shortcut to cmd.exe and running it as administrator the dirs are still created inside SysWOW64. ex:
%windir%\system32\cmd.exe /c "D:\Test.bat" or %windir%\System32\runas.exe /user:Administrator %windir%\system32\cmd.exe /c "D:\Test.bat"
but if a open the cmd.exe manually as administrator and run the .bat file, it works! What a heck??
I found out why. It is because I was running the .bat inside XYPlorer and not Windows Explorer (WE). Inside WE the .bat works.
But a shortcut opened inside a 32 bit explorer is not able to run a 62 bit cmd.exe ?