RosettaCodeData/Task/Execute-a-system-command/JavaScript/execute-a-system-command-1.js

3 lines
81 B
JavaScript

var shell = new ActiveXObject("WScript.Shell");
shell.run("cmd /c dir & pause");