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.
- Host: GitHub
- URL: https://github.com/nodef/extra-jscript.cmd
- Owner: nodef
- License: mit
- Created: 2017-10-16T18:24:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-10T19:58:56.000Z (9 months ago)
- Last Synced: 2025-04-10T20:49:04.443Z (9 months ago)
- Topics: console, extra, jscript, merferry, net, program, run, windows
- Language: C#
- Homepage: https://cmdf.github.io/extra-jscript/
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
[](https://cmdf.github.io)
