Hi
I'm pretty new to this, and have a couple of questions, I hope you can answer.
I have created this small program - it runs :-) So far so good. But I would like the program to be started, and then run in the background, so the user do not see the CMD commands entered. Any idea how to do this ?
Also, if I want to check if each step is successfull before proceeding to the next command, then how to do this ?
Here's the program:
$answer = MsgBox(4, "AutoIt Example (English Only)", "Updating system clock.Do you want to proceed ?")
If $answer = 7 Then
MsgBox(0, "AutoIt", "OK. Good bye !")
Exit
EndIf
run ("cmd")
send("cnet stop w32time{ENTER}")
sleep (5000)
send("net time /setsntp:time.windows.com{ENTER}")
sleep (5000)
send("net start w32time{ENTER}")
sleep (5000)
send("exit{ENTER}")