hardlife
09-27-2009, 05:22 AM
Does somebody knows if it is possible to send DOS command
and continue in code without waiting for DOS to finish?
Sub sleepANDwork()
Set objShell = CreateObject("WScript.Shell")
strCommand = "cmd /c ping 1.0.0.0 -n 1 -w 5000 >NUL" 'that will stop for 5 seconds.
objShell.Run strCommand, 0, True
MsgBox "happy and sunny day"
End Sub
me is wishing happy and sunny day to Everybody.
and continue in code without waiting for DOS to finish?
Sub sleepANDwork()
Set objShell = CreateObject("WScript.Shell")
strCommand = "cmd /c ping 1.0.0.0 -n 1 -w 5000 >NUL" 'that will stop for 5 seconds.
objShell.Run strCommand, 0, True
MsgBox "happy and sunny day"
End Sub
me is wishing happy and sunny day to Everybody.