An open API service indexing awesome lists of open source software.

https://github.com/nodef/extra-jscript.cmd

Run a Jscript.NET script in Windows Console.
https://github.com/nodef/extra-jscript.cmd

console extra jscript merferry net program run windows

Last synced: 5 months ago
JSON representation

Run a Jscript.NET script in Windows Console.

Awesome Lists containing this project

README

          

Run a Jscript.NET script in Windows Console.
> 1. Download [exe file](https://github.com/cmdf/extra-jscript/releases/download/1.0.0/ejscript.exe).
> 2. Copy to `C:\Program_Files\Scripts`.
> 3. Add `C:\Program_Files\Scripts` to `PATH` environment variable.

```batch
> ejscript [-c|--compile] [-o|--output ] [input arguments to script]...

:: [] -> optional argument
:: <> -> argument value
```

```batch
:: 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 Apps\pokemon.exe" pokemon.js

:: set output binary for "pokemon.js" and only compile
> ejscript --output "C:\Games and Apps\pokemon.exe" --compile pokemon.js

:: run "ocolor.cmd" with input arguments "yellow black"
> ejscript ocolor.cmd yellow black
```

[![cmdf](https://i.imgur.com/YSdzA2n.jpg)](https://cmdf.github.io)
![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/extra-jscript.cmd)