Return to Snippet

Revision: 7445
at July 25, 2008 02:19 by mitry


Initial Code
@set @cmdinterop=1 /*
@set @cmdinterop=
@%SystemRoot%\system32\cscript.exe //NoLogo //E:JScript "%~f0" %* & exit /b
*/
// JScript start here:
var today = new Date();
WScript.Echo(today);

Initial URL
http://blogs.msdn.com/joshpoley/archive/2008/01/15/running-jscript-in-a-cmd-file.aspx

Initial Description
embed the JScript code in a .cmd file

Initial Title
Running JScript in a CMD File

Initial Tags

                                

Initial Language
JavaScript