
Create a Reboot.vbs and paste the following in it.. 'Code begin Dim o Set o = createObject("WScript.Shell") WScript.sleep 5400000 'Script is inactive for 90 minutes 'then displays a warning for 30 seconds prompting user to save his/her work before restarting o.Run "shutdown -f -r -t 30 -c 'Windows is rebooting. Save all your work within the time indicated.'" 'Code end Copy the script it to your startup folder or add it's path to a string value in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Me. 2009/9/7 Murigi Muraya <mmskunkworks@gmail.com>
Philip,
Do you tutor?
http://teamtutorials.com/windows-tutorials/schedule-windows-to-automatically...
On Mon, Sep 7, 2009 at 9:19 AM, Philip Musyoki <pmusyoki@gmail.com> wrote:
Hi Wash
This may not be as straighforward in Windows, but there is a work aroudn that you can try.
Create a batch file somewhere in your computer (myrestart.bat). You can use Notepad to do this but make sure you save it as a .bat file so that Windows understands it is a batch file.
Type this command in the batch file: *shutdown /f /r /t 30*
Save you file. The file should just have this one command.
This means that the computer will shutdown and restart, running application will be force to close and it will do so in that minutes.
Now back to the Tast Scheduler, create tasks to call this batch file every 1.5 hours. You may have to create 16 different tasks for each shutdown/restart cycle. I am not sure there is a custom hours/minutes repeat function in the Windows Task Scheduler.
You can also do a script to do what the batch file does but I guess the batch file way is easier.
See if it works for you.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
-- שִׁמְעוֹן