/ Published in: JavaScript

embed the JScript code in a .cmd file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@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);
URL: http://blogs.msdn.com/joshpoley/archive/2008/01/15/running-jscript-in-a-cmd-file.aspx
Comments
