Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 04, 2016, 10:18:01 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Scheduled Shutdown after backup?  (Read 3748 times)

nwtim

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Scheduled Shutdown after backup?
« on: December 01, 2005, 03:03:52 PM »
I have local project files xcopied to a fileserver daily using XP's built-in task scheduler.  I'd like to have it done unattended after I've left for the day but I'd like to shut down the computer after all the scheduled tasks are completed.  Is there a simple way to do this?

Thanks!

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 7,986
    • View Profile
    • Dales Computer Services
    • Donate to Member
Re: Scheduled Shutdown after backup?
« Reply #1 on: December 01, 2005, 04:04:24 PM »
You could use shutdown.exe

If you have Windows XP you will find it in C:\Windows\System32

To shutdown your system you could set up a scheduled task but you will need to edit the command's properties and add the -s switch to the command line so that it says:

C:\Windows\System32\shutdown.exe -s

note the space before the -s.

If you want to look at more options you can open a DOS window and simply type shutdown

all the command options will be displayed.

If you want it to execute immediately after the backup command finishes you may need to put bothe the backup and shutdown commands in a batch file and schedule that instead.

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: Scheduled Shutdown after backup?
« Reply #2 on: December 01, 2005, 04:13:34 PM »
Make a batch file and point the scheduler to that:

@ECHO OFF
C:\Program Files\Backup.exe
SHUTDOWN -s -t 0

Due to the way batch files are processed (in series), it wont start the shutdown sequence until Backup.exe has closed/finished

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:

nwtim

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 6
    • View Profile
    • Donate to Member
Re: Scheduled Shutdown after backup?
« Reply #3 on: December 01, 2005, 10:20:19 PM »
Shutdown.exe huh?  I can't believe I didn't know that existed!

Thank you!

Tim