extra jscript
Run a Jscript.NET script in Windows Console.
Führen Sie ein Jscript.NET-Skript in der Windows-Konsole aus.
- Laden Sie die exe-Datei herunter.
- Nach
C:Program_FilesScripts
kopieren.- Fügen Sie
C:Program_FilesScripts
zur UmgebungsvariablenPATH
hinzu.
> 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