WinXP... I do a backup on this PC every few days by manually rebooting and then running a BAT file that I have created that runs my backup program (ZIPBACKUP) a couple of times and then copies the resulting ZIP files onto another PC on my home network. I would like to completely automate this process by using the Task Scheduler (or equivalent) to initiate the reboot and then automatically run my existing backup BAT file after the reboot. I need suggestions on:
1. How to cause the reboot from a BAT file?
2. How to automatically start a BAT file after the reboot?
Thanks, Bill
Need to Reboot and run BAT file from Scheduler
-
- 3StarLounger
- Posts: 208
- Joined: 24 Mar 2010, 15:22
-
- PlutoniumLounger
- Posts: 15615
- Joined: 24 Jan 2010, 23:23
- Location: brings.slot.perky
Re: Need to Reboot and run BAT file from Scheduler
Hi Bill.BillW wrote:1. How to cause the reboot from a BAT file?
I use these two batch files WinXp/Win7 (attached)
The key line for the reboot being:
Code: Select all
ShutDown.exe -r -t 00
You do not have the required permissions to view the files attached to this post.
There's nothing heavier than an empty water bottle
-
- PlutoniumLounger
- Posts: 15615
- Joined: 24 Jan 2010, 23:23
- Location: brings.slot.perky
Re: Need to Reboot and run BAT file from Scheduler
Hi Bill.BillW wrote:2. How to automatically start a BAT file after the reboot?
I drop a shortcut to my Auto.bat (attached) into my startup folder
Win7: at C:\Users\ChrisC\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
You do not have the required permissions to view the files attached to this post.
There's nothing heavier than an empty water bottle
-
- 3StarLounger
- Posts: 208
- Joined: 24 Mar 2010, 15:22
Re: Need to Reboot and run BAT file from Scheduler
Thanks Chris, your messages contain a lot of useful info and I think I am all set now.
Bill
Bill