Tutorial by Examples

This following example is created by user Michael Dillon from this answer. Consider the following script: @set @junk=1 /* @echo off cscript //nologo //E:jscript %0 %* goto :eof */ //JScript aka Javascript here This script snippet does: Execute the cscript command which calls itsel...
As mentioned here, the old-school method to run another script is by using temporary files. Simple echo it into a file and then run it(and remove it optionally). Here's the basic concept: @echo off echo //A JS Comment > TempJS.js echo //Add your code>>TempJS.js cscript //nologo //e...

Page 1 of 1