normally we use winactive to send text to cmd.EXE like:
Code: Select all
run, %comspec% /k
WinWait, %comspec%
WinActivate
Send stop{Enter}
Code: Select all
run,%comspec% /k ver&time /t&date /t`n
Code: Select all
objShell := ComObjCreate("WScript.Shell")
objExec := objShell.Exec(ComSpec " /c stop")
strStdOut := ""
while, !objExec.StdOut.AtEndOfStream
{
strStdOut := objExec.StdOut.ReadAll()
}
but normally is single command
can someone know how to send command to cmd and use multiple line ??