When running .js scripts from the command line, via cscript.exe, what should should follow the "//E:" switch?
Never mind... stupid me, "//E:jscript" did the trick "Patrick Spence" wrote in message news:u2FSI3LgFHA.572@TK2MSFTNGP15.phx.gbl... > When running .js scripts from the command line, via cscript.exe, what should > should follow the "//E:" switch? > > >
Patrick Spence wrote: > When running .js scripts from the command line, via cscript.exe, what should > should follow the "//E:" switch? You do not need that switch, you can just execute cscript file.js -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/
"Martin Honnen" wrote in message news:OSZAa8LgFHA.3436@tk2msftngp13.phx.gbl... > > > Patrick Spence wrote: > > > When running .js scripts from the command line, via cscript.exe, what should > > should follow the "//E:" switch? > > You do not need that switch, you can just execute > cscript file.js When I do, I get the following error: Input Error: There is no script engine for file extension ".js".
Patrick Spence wrote: > "Martin Honnen" wrote in message > news:OSZAa8LgFHA.3436@tk2msftngp13.phx.gbl... >> >> >> Patrick Spence wrote: >> >>> When running .js scripts from the command line, via cscript.exe, >>> what should should follow the "//E:" switch? >> >> You do not need that switch, you can just execute >> cscript file.js > > When I do, I get the following error: > Input Error: There is no script engine for file extension ".js". Some other application that you have installed has hosed the registry entrys for the sctipt related file extensions. Try reinstalling WSH from the standalone WSH install package for your OS. Microsoft Windows Script Downloads http://msdn.microsoft.com/downloads/list/webdev.asp?frame=true -- Michael Harris Microsoft MVP Scripting