Skip to content

Instantly share code, notes, and snippets.



Last active Apr 1, 2021
What would you like to do?
JScript in/out console for Windows Script Host
function print(text) {
WScript.Echo('> ' + text);
var stdin = WScript.StdIn;
var stdout = WScript.StdOut;
var input;
do {
var input = stdin.ReadLine();
try {
} catch (e) {
print( + ': ' + e.message);
} while (input != 'exit');

This comment has been minimized.

Copy link
Owner Author

@kavun kavun commented Jun 6, 2013

execute with cscript WSHRepl.js
output with print('text');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment