Trying to run cscript from commandline give the error 'cscript is not a valid Win32 application' on Windows Server 2003, with IIS 6 installed.
1 Answer
It needs to look to the 32-bit version of cscript, rather than the 64 bit version, which is used in PATH.
Call C:\WINDOWS\system32\cscript.exe with the full path.
-
I know on windows 64 bit %windir%\system32 is the native 64 bit and %windir%\sysWOW64 that is the 32 bit subsystem ...Massimo– Massimo2017-06-22 12:45:04 +00:00Commented Jun 22, 2017 at 12:45
C:\WINDOWS\system32\cscript.exewith the full path.