(Solved) How to hide cmd window?
Posted: 26 Jul 2014, 02:29
Hi,
How do I hide the command prompt window that shows up when I run the following script (or prevent it from ever showing up)?
How do I hide the command prompt window that shows up when I run the following script (or prevent it from ever showing up)?
Code: Select all
objShell := ComObjCreate("WScript.Shell")
objExec := objShell.Exec("cmd /c ping -n 3 -w 1000 www.google.com")
While !objExec.Status
Sleep 100
strLine := objExec.StdOut.ReadAll() ;read the output at once
msgbox % strLine