I’m writing a .bat file to handle some script generation automatically so I don’t have to type in half a dozen command arguments each time I want to run it.
I have to run a vb script from the batch file
@call ..\Database\scripts\runscriptupdates.vbs
However the script will only run if using the the command prompt from
C:\Windows\SysWOW64\cmd.exe
By default the bat file uses the cmd.exe in system32
C:\Windows\System32\cmd.exe
Is there a way to force the batch file to use this cmd.exe to run the vbs file? I’ve been trawling the web for about an hour now and haven’t found anything which helps (so far).
I’ve tried running the syswow64 with “start …” however it doesn’t seem to take the arguments after it.
Many thanks, Neil
You can try:
This will run the batch itself from a 32-bit command prompt. Thus, the call to your vbs will also be coming from a 32-bit command prompt.