ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Scheduled Shutdown after backup?

(1/1)

nwtim:
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:
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:
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

nwtim:
Shutdown.exe huh?  I can't believe I didn't know that existed!

Thank you!

Tim

Navigation

[0] Message Index

Go to full version