Last active
September 3, 2019 09:30
-
-
Save LAK132/32c0ac4e5f22a3260a47c05858038cd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (@a==@b) @end /* | |
@echo off | |
SetLocal EnableDelayedExpansion | |
for /f "delims=" %%A in ('cscript /nologo /e:jscript "%~f0" %*') do ( call %%A ) | |
goto :eof | |
*/ | |
var print = function(str) { if (str) WSH.Echo("echo " + str); } | |
var system = function(str) { WSH.Echo(str); } | |
var argc = WSH.Arguments.Length; | |
var argv = function(ind) { return WSH.Arguments(ind); } | |
print("Hello, World"); | |
system("type javascript.bat"); | |
if (argc >= 1) print(argv(0)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment