Skip to content Skip to sidebar Skip to footer

Show Output From Shell Command Run From Jscript

I want to run a shell command from jscript from IE on a Windows machine. I have the following jscript function: function execCommand( command ){ var myShell = new ActiveXObjec

Solution 1:

You can use the methods described here.

By exec you have to echo the stdout into a new message, by run you can use cmd or %comspec% with /K to prevent the window closing.

You should try the pause command too, maybe it helps...

Post a Comment for "Show Output From Shell Command Run From Jscript"