We have a javascript
that i would like to compile to a exe
.
I am using the jsc.exe
to do this. However, i get the following error when attempting to compile.
error JS1135: Variable 'WScript' has not been declared
Here is the segment of code:
var omgShell = WScript.CreateObject( "WScript.Shell" );
What is the problem here?
Thanks