Reputation: 43
hello am writing a code in VB to send commands to cygwin terminal and i want the code to wait for the first command to wait untill the first command is excuted (or wait about 2 min) and then continue to the next command, the a part of the code:
Shell("C:\cygwin\bin\mintty.exe")
SendKeys.Send("tracert -h " & _h & " " & domain.Text & " > temp1.txt{ENTER}")
the program should wait 2 min here and then continue to the next command, thanks.
Upvotes: 2
Views: 12249
Reputation: 20189
Try this:
System.Threading.Thread.Sleep(120000)
The value is in millseconds.
Upvotes: 3