JScriptかつwscript.exeのときにユーザーからの入力を得る方法
cscript.exeの場合は簡単で、
var input = WScript.stdin.readLine();
で取れます。
wscript.exeの場合は
var WshShell = new ActiveXObject("WScript.Shell"); var oExec = WshShell.exec("cmd /c title テスト && type con"); var input = oExec.stdout.readLine(); oExec.terminate();
で取れます。
VBSを使用できる場合は以下の方法でinputboxが使えます。