Hi!
First I have to say I´m a total newbie on VBScript.
I want to do a VBscript that turns the computer off at a specific time incase I forget to turn it off at night. This is good for the environment and also my powerbill.
My plan is to add the script i scheduled tasks in windows, to be run at 20:00 every day. However I do not want the script to complete starting shutdown.exe if Im still working with something. Therefore it would be brilliant if The script can do:
1] a messagebox with some information to the user
2] a pause or timeoutfunction, (a countdown for 300 secounds or so)
3] a cancelbutton that allows the user to terminate the script before shutdown.exe starts.
This is how I start shutdown.exe
Set oShell = CreateObject("Wscript.Shell")
oShell.CurrentDirectory = "C:\Windows\system32"
oShell.Run "C:\Windows\shutdown.exe -s -f"
Could somebody help me with this, please!