Skip to content

Instantly share code, notes, and snippets.

@xcriptus
Created December 9, 2012 20:44
Show Gist options
  • Save xcriptus/4246896 to your computer and use it in GitHub Desktop.
Save xcriptus/4246896 to your computer and use it in GitHub Desktop.
StarUML - Shell Execution (VB Script)
var shell = new ActiveXObject("WScript.Shell") ;
var exec = shell.Exec("C:\\cmd arg1 arg2 arg3")
while (! exec.StdOut.AtEndOfStream) {
strLine = objExecObject.StdOut.ReadLine()
Wscript.Echo "out: " & strLine
Loop
Do Until objExecObject.StdErr.AtEndOfStream
strLine = objExecObject.StdErr.ReadLine()
Wscript.Echo "err: " & strLine
Loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment