2

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
  • 1
    It needs to look to the 32-bit version of cscript. You gotta call C:\WINDOWS\system32\cscript.exe with the full path. Commented Nov 19, 2012 at 21:55

1 Answer 1

3

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.

1
  • I know on windows 64 bit %windir%\system32 is the native 64 bit and %windir%\sysWOW64 that is the 32 bit subsystem ... Commented Jun 22, 2017 at 12:45

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.