Skip to content

Instantly share code, notes, and snippets.

@hymkor
Created September 10, 2014 10:50
Show Gist options
  • Save hymkor/1530fe3e9aa7ec04b382 to your computer and use it in GitHub Desktop.
Save hymkor/1530fe3e9aa7ec04b382 to your computer and use it in GitHub Desktop.
JScript をバッチファイル内に埋め込んでみる(shebangもどき) ref: http://qiita.com/zetamatta/items/0e4b28b46d007f308c60
<HAYAMA-PC:~>
✏ foo.cmd
<HAYAMA-PC:C:\Users\Hayama>
rem = 0 /*
ahaha
rem = 0 /*
@cscript //E:JScript //nologo "%~f0" %1 %2 %3 %4 %5 %6 %7 %8 %9 & exit /b
*/
WScript.Echo("ahaha")
// vim:set filetype=javascript:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment