extra jscript
Run a Jscript.NET script in Windows Console.
Windows 콘솔에서 Jscript.NET 스크립트를 실행합니다.
- exe 파일을 다운로드하세요.
C:Program_FilesScripts
에 복사합니다.PATH
환경 변수에C:Program_FilesScripts
추가합니다.
> ejscript [-c | --compile] [-o | --output < output binary > ] < input script > [input arguments to script]...
:: [] -> optional argument
:: <> -> argument value
:: run "pokemon.js" with no input arguments
> ejscript pokemon.js
:: run "pokemon.js" with input argument "bulbasaur"
> ejscript pokemon.js bulbasaur
:: run "pokemon.js" with input arguments "bulbasaur --height"
> ejscript pokemon.js bulbasaur --height
:: only compile "pokemon.js", and get its output path
> ejscript --compile pokemon.js
:: set output binary for "pokemon.js" and run
> ejscript --output " C:Games and Appspokemon.exe " pokemon.js
:: set output binary for "pokemon.js" and only compile
> ejscript --output " C:Games and Appspokemon.exe " --compile pokemon.js
:: run "ocolor.cmd" with input arguments "yellow black"
> ejscript ocolor.cmd yellow black