Dim Shell : Set Shell = CreateObject("WScript.Shell") argument_t = inputbox("Time in Seconds:", "Shutdown", "3600") Shell.Run "C:/Windows/system32/shutdown.exe -f -s -t " & _ argument_t, 0 MsgBox "Press OK if you want to cancel the Shutdown..", _ vbInformation + vbOkayonly, "Cancel Shutdown" Shell.Run "C:/Windows/system32/shutdown.exe -a", 0
I put the vbs file on my disk and a shortcut to it on the Desktop. You can choose the time until shutdown with an input box.
Awesomeness!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ReplyDeletecoo;
ReplyDelete