Saturday, April 18, 2009

a hybrid : javascript inside a bat file

Truly nice mix! ;-)

Originally by this guy

// Jim Lawless
// jimbo@radiks.net
// http://www.radiks.net/~jimbo

Your.bat file:

rem ( /*
@echo off
cscript /nologo /e:javascript %0
goto end
*/ )

//
// main function is below

function rem() {
WScript.StdOut.WriteLine("Hello, world!");
}

/*
:end */

No comments: