Hi,
How could I adjust this code so that a prompt will reappear every 2 hours if No is clicked?
Set wshshell = CreateObject("Wscript.Shell")
intMessage = Msgbox("MIS has updated your computer to IE7. A restart is required to complete the installation. Would you like to restart now?",_
vbYesNo, "ABC - Internet Explorer 7 Upgrade")
If intMessage = vbYes Then
WshShell.Run "%windir%\system32\shutdown.exe -r -t 300 -c " & chr(34) &_
"Internet Explorer 7 Upgrade - Please save and close your work as the computer will be restarted in 5 minutes." & chr(34)
Else
Wscript.Quit
End If
How could I adjust this code so that a prompt will reappear every 2 hours if No is clicked?
Set wshshell = CreateObject("Wscript.Shell")
intMessage = Msgbox("MIS has updated your computer to IE7. A restart is required to complete the installation. Would you like to restart now?",_
vbYesNo, "ABC - Internet Explorer 7 Upgrade")
If intMessage = vbYes Then
WshShell.Run "%windir%\system32\shutdown.exe -r -t 300 -c " & chr(34) &_
"Internet Explorer 7 Upgrade - Please save and close your work as the computer will be restarted in 5 minutes." & chr(34)
Else
Wscript.Quit
End If