I have a legacy VBScript program that has been recently been migrated to a new 64-bit Windows server by a system administrator due to a policy set by a higher power. By default, VBScript executed in 64-bit Windows automatically runs as a 64-bit program. Because I have reasons to have this program run in 32-bit mode, I modified my batch file to execute my program in a different way.
This is the BEFORE picture. When this batch file is run in 64-bit Windows, it will execute in 64-bit mode.
time /t cscript ThisIsMyVbscriptProgram.vbs time /t
Below is the AFTER picture. Note that I am passing my script into a new command prompt environment in the Windows SYSWOW64 folder; this new environment is strictly in 32-bit mode.
time /t %WINDIR%SYSWOW64cmd.exe /c cscript ThisIsMyVbscriptProgram.vbs time /t
As a side note: WOW stands for “Windows on Windows”.
hi,
I am looking for this solution but it is not working for me. If I’m missing anything.
Are you running any specific error messages?