home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Technical Support
Ask a Tech Support Question (free)!

Shutdown

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1558
Discussions: 200,933, Posts: 2,379,175, Members: 246,298
Old November 29th, 2002, 06:31 AM   Digg it!   #1 (permalink)
Member
 
Join Date: Nov 2002
Posts: 96
Shutdown

Hi, I've configured a batch file to shutdown the computer at a particular time of day. However, it will only shut down to the point where you get the message "it is now safe to turn off your computer". On a normal shut down, the PC does power off.

This is on windows xp pro and APM is enabled.

Any help would be appreciated.

Thanks, Steve.
ribster is offline   Reply With Quote
Old November 29th, 2002, 06:35 AM     #2 (permalink)
mickwish
 
Posts: n/a
Give us the gist of your batch file. What commands are you using?

Cheers
Mick
  Reply With Quote
Old November 29th, 2002, 06:49 AM     #3 (permalink)
Member
 
Join Date: Nov 2002
Posts: 96
shutdown -s -t 00

Cheers, Steve.
ribster is offline   Reply With Quote
Old November 29th, 2002, 07:04 AM     #4 (permalink)
mickwish
 
Posts: n/a
Seems that command only shuts down windows in XP
Quote:
Shutdown & Restart Shortcuts for Windows XP & Windows 2000
Windows XP has an actual shutdown command that can be launched from a command prompt — and which, therefore, also can be launched from a shortcut. To see all available options for this command, click Start, click Run, and type:

SHUTDOWN /?
This command starts a 30-second countdown for a shutdown or restart, which permits you to abort it (with a shutdown -a command). It you want the command to execute, use the -t flag, which lets you set the time lapse in seconds. The examples below use a 1-second delay.

For a shortcut to RESTART Windows XP:
SHUTDOWN -r -t 01

For a shortcut to SHUT DOWN Windows XP:
SHUTDOWN -s -t 01

Unfortunately, this option only shuts down Windows. It does not shut down your computer, at least on most hardware. For that, on Win XP (and possibly on Win 2000) I recommend the freeware utility Shutdown.exe (not to be confused with the Windows XP utility by the same name) by MS-MVP Andrej Budja. I’ve seen several shutdown utilities recommended, but this is the only one that I’ve seen actually shut down Windows XP and then powerdown the computer behind it. For more information on the tool, see here. After you place this utility in the root folder of C:, the commands for a shutdown or restart (respectively), each without a time delay, would be shutdown -u -t 0 for shutdown and shutdown -r -t 0 for restart.

If you don’t want to use a third-party utility, you may be able to get by with a lesser known utility in Windows 2000 and Windows XP. The native commandline tool tsshutdn.exe was originally designed for shutting down servers, not work stations. It was introduced in Windows 2000, and retained in Windows XP. See MSKB 320188, “How to Use the TSSHUTDN Command to Shut Down a Terminal Server in Windows 2000 Terminal Services,” and MSKB 243202, “Windows 2000 Terminal Services Session Management Tools.” From a command prompt, type tsshutdn /? for a list of its subcommands and syntax. A command line of C:\WINDOWS\SYSTEM32\TSSHUTDN.EXE 0 /DELAY:0 /POWERDOWN will powerdown most Windows 2000 and Windows XP computers, though some (according to correspondent “perris,” who first turned us onto this native utility) will get an error message 1702.

Another solution for Windows XP users involves using the power switch on your computer — but only after you’ve set it to shutdown Windows first! If you poweroff your computer without shutting down Windows (and letting your applications save their data and close, if necessary), you invite a whole lot of serious problems! The correct way to do this is: After a fresh reboot of the computer, in the Windows XP Control Panel click Power Options. Click the Advanced tab. In the Power Buttons section, under “When I press the power button on my computer,” select “Shutdown.” (If this is not visible on your Advanced tab, then your computer does not have the hardware capability to do this job correctly, or the capability is disabled in CMOS.) Click Apply. This sets your computer so that when you press the hardware power button it will first do a proper shutdown of Windows, and then poweroff the computer.

Some tips there - hope they help.

From here.

Cheers
Mick
  Reply With Quote
Old November 29th, 2002, 07:16 AM     #5 (permalink)
Senior Member
 
Love2Learn's Avatar
 
Join Date: Nov 2002
Location: Killeen Texas
Posts: 612
Send a message via ICQ to Love2Learn
why not use the scheduler...

-L2L
__________________
ASUS 7900GT 256MB
Hauppauge pvr 150 MCE
Pentium D 930
ASUS P5WD2 P
4gb CORSAIR DDR2
2 WD Raptors 74GB (RAID 0)
Antec Lanboy case
Windows XP MCE
Love2Learn is offline   Reply With Quote
Old November 29th, 2002, 07:42 AM     #6 (permalink)
Member
 
Join Date: Nov 2002
Posts: 96
Yeah, thanks - though the C:\WINDOWS\SYSTEM32\TSSHUTDN.EXE 0 /DELAY:0 /POWERDOWN command line only logs the user out. So I'm no further on really.

I may look up a third party utility, but its not really of paramount importance, so I'll have to see.

Thanks for your time.

Steve.
ribster is offline   Reply With Quote
Old November 30th, 2002, 11:18 AM     #7 (permalink)
Ultimate Member
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 3,221
Send a message via AIM to nukes Send a message via Yahoo to nukes
There are two (or maybe more) rundll commands that will shut down the computer.

"rundll32.exe shell32.dll,SHExitWindowsEx n"

where n is one, or a combination of, the following numbers:
0 - LOGOFF
1 - SHUTDOWN
2 - REBOOT
4 - FORCE
8 - POWEROFF

Or "rundll32.exe user,exitwindows"
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2878)
Obama the Muslim (14)
California Passes Anti-Flat-HDTV Le.. (39)
Is the PSU I received dead? (10)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
EVGA 9800 gtx help with finding a g.. (8)
New Computer wont recognize XP disc (7)
Ideal cheap graph card for PC-Gamin.. (17)
Recent Discussions
CPU fan stops spinning randomly (1)
Wireless Televisions. (1)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Partition Magic caused HDD problem (2)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)


All times are GMT -4. The time now is 09:13 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28