Re: off the topic but, how do you reboot with a batch

  • From: "Troy Armour" <troy@xxxxxxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Fri, 13 Jun 2003 21:06:12 +0100

Messagethere are ways you could do it-this is one: you'll need 2 batch files

1. create a batch file called start.bat and put it in the startup folder of the 

2 start this file with the command "if exist" command to see if a file say 
called run.dat exists in the windows directory 

3. if the file exists then the rest of the batch file will run-if it doesn't 
exist then it wont

4 now you need to add the shutdown command to the end of the first batch file 
and also add a command to create a file called "c:\windows\run.dat" i.e. "dir > 
c:\windows\run.dat" this will trigger the second batch file when you restart.

5. last thing is to make sure that at the end of the startup bacth file to 
delete the file or it will remain there and cause it to run every time.

hope this makes some sense for ya


  ----- Original Message ----- 
  From: Van Singel, Scott 
  To: [ExchangeList] 
  Sent: Friday, June 13, 2003 8:40 PM
  Subject: [exchangelist] off the topic but, how do you reboot with a batch


   I would like to write a batch file to make a computer reboot and then finish 
the batch after it has rebooted. 
  Does anyone have some ideas?

  List Archives:
  Exchange Newsletters:
  Exchange FAQ:
  Other Internet Software Marketing Sites:
  Leading Network Software Directory:
  No.1 ISA Server Resource Site:
  Windows Security Resource Site:
  Network Security Library:
  Windows 2000/NT Fax Solutions:
  You are currently subscribed to this Discussion List as: 
  To unsubscribe send a blank email to $subst('Email.Unsub') 

Other related posts: