Function RunCommand(strCommand)
Set objShell = CreateObject("WScript.Shell")
Set objExec = objShell.Exec(strCommand)
While objExec.Status = 1
Application.Wait "00:00:01"
Wend
RunCommand = objExec.StdOut.ReadAll
End Function
No comments:
Post a Comment