Computing.Net > Forums > Windows XP > Shutdown script

Shutdown script

Reply to Message Icon

Original Message
Name: William Lockie (by blockie)
Date: May 10, 2008 at 14:49:37 Pacific
Subject: Shutdown script
OS: WXP SP2
CPU/Ram: 3.0/2G
Model/Manufacturer: Clone
Comment:

I am looking for a shutdown scrip that I can add to the Windows scheduler. Maybe a simple program will do. I want to shut down my computer at 2-3 in the morning after all scans,backup etc. are done.

William Lockie
"OS: WXP SP2
CPU/Ram: 3.0/2GB
Manufacturer/Model: clone"


Report Offensive Message For Removal


Response Number 1
Name: Wombat
Date: May 10, 2008 at 14:57:25 Pacific
Reply: (edit)

Download Poweroff and set it up to do what you want.

This is a quick and dirty method but it works well...

http://users.pandora.be/jbosman/app...

Artificial intelligence is no match for natural stupidity...


Report Offensive Follow Up For Removal

Response Number 2
Name: RTAdams89
Date: May 10, 2008 at 14:57:42 Pacific
Reply: (edit)

Windows XP includes a program shutdown.exe that does this

-Ryan Adams
http://RyanTAdams.com


Report Offensive Follow Up For Removal

Response Number 3
Name: ...
Date: May 10, 2008 at 20:50:43 Pacific
Reply: (edit)

Like RTAdams89 said, Windows has a shutdown command.

shutdown -f -s -t 1

should work for you (-f force shutdown of programs, -s is a shutdown and not a restart, and -t 1 for 1 second. But how do you know when the scans will complete?


Report Offensive Follow Up For Removal

Response Number 4
Name: William Lockie (by blockie)
Date: May 12, 2008 at 07:56:01 Pacific
Reply: (edit)

Thanks RTAdams89,
I will put this batch file in the Windows scheduler to execute each night after housekeeping is done. ( estimate time).
However, I try to run the batch file like it is written only gets me to the command prompt. It does not execute the remaining two lines. What am I doing wrong?


shutdown.bat
cmd
cd C:\WINDOWS\SYSTEM32\
Shutdown -f-s

William Lockie
"OS: WXP SP2
CPU/Ram: 3.0/2GB
Manufacturer/Model: clone"


Report Offensive Follow Up For Removal

Response Number 5
Name: RTAdams89
Date: May 13, 2008 at 01:54:30 Pacific
Reply: (edit)

all you need to do is run "shutdown.exe -f -s -t 5"

No need to put it in a batch file

-Ryan Adams
http://RyanTAdams.com


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Shutdown script

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge