/ Published in: JavaScript

URL: http://blogs.msdn.com/joshpoley/archive/2008/01/15/running-jscript-in-a-cmd-file.aspx
embed the JScript code in a .cmd file
Expand |
Embed | Plain Text
@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);
You need to login to post a comment.