Annoyances.org
Home » Windows 98 Discussion Forum » Message 1118330844 Search | Help | Home
  
re: How to get my Windows 98 computer to automatically shutdown by it's self.
Thursday, June 9, 2005 at 8:27 am
Windows 98 Annoyances Discussion Forum
Posted by Paul Hokanson (1 messages posted)


Try visiting this link http://support.microsoft.com/?kbid=234216 and look at using number 8 (Poweroff feature) SUMMARY This article describes commands that you can use to create a batch file that automatically restarts Windows 98 or Windows Millennium Edition (Me). Back to the top MORE INFORMATION You can use either of the following commands in a batch file to restart Windows 98/Me automatically: • runonce.exe -q • 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 The above options can be combined into one value to achieve different results. For example, to restart Windows forcefully, without querying any running programs, use the following command line: rundll32.exe shell32.dll,SHExitWindowsEx 6 NOTE: Using the FORCE option can cause programs to lose data. Below is an explanation of each available option used with the above command line: • LOGOFF - Shuts down all running processes, then logs the user off. • POWEROFF - Shuts down the system and turns off the power. The system must support the power-off feature. • REBOOT - Shuts down the system and then restarts the system. • SHUTDOWN - Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped. • FORCE - Forces processes to terminate. When this flag is set, Windows does not query running applications to inform them that Windows is shutting down. This can cause the applications to lose data, therefore, you should only use this flag in an emergency. The "rundll32.exe shell32.dll,SHExitWindowsEx (n)" command mentioned above can be called from the RunOnce registry key. The runonce.exe -q command mentioned above restarts the computer after a 15 second delay. There are no other options when using this command line, and it cannot be called from the RunOnce registry key. For additional information about the RunOnce registry key, please see the following article in the Microsoft Knowledge Base: 137367 Definition of the RunOnce Keys in the Registry


On Saturday, January 17, 2004 at 10:20 pm, Daniel wrote:
>I have a Windows 98 computer and I would like it to shutdown automatically,instead
>of seeing a message saying (It is now safe to turn off your computer).I just bought
>a new hard drive for my computer and this computer I am on now would not let me install
>Windows 98 on here.So I hooked the hard drive up on another computer and it let me
>install Windows 98.When that was done I hooked the hard drive back on this computer
>and it worked,it loaded Windows 98 up.It works great,but I am now trying to figure
>out how to get it to shutdown automatically.My old hard drive that I use to have
>on this computer would shut down the computer automatically.Now it won't with this
>new hard drive.I'm not sure but I think when i hooked this new hard drive back on
>this computer after installing Windows 98 on another computer,that,that might be
>the problem.So if anybody knows how to get my new hard drive to shutdown automatically
>that would be great.Oh by the way I do have the APM (Advanced Power Management) enable
>in the bios setup,just to let all of you know.So thanks to anyone who gives me help!
>
>


Written in response to:
How to get my Windows 98 computer to automatically shutdown by it's self. (Daniel: Saturday, January 17, 2004 at 10:20 pm)

Responses to this message:
*re: How to get my Windows 98 computer to automatically shutdown by it's self. (ML: Monday, July 4, 2005 at 1:22 pm)

All messages in this thread [show all]
-How to get my Windows 98 computer to automatically shutdown by it's self. (Daniel: Sat, Jan 17, 2004, 10:20 pm)
*re: How to get my Windows 98 computer to automatically shutdown by it's self. (Ms. Eagle: Sun, Jan 18, 2004, 12:19 pm)
-re: How to get my Windows 98 computer to automatically shutdown by it's self. (Paul Hokanson: Thu, Jun 9, 2005, 8:27 am)
*re: How to get my Windows 98 computer to automatically shutdown by it's self. (ML: Mon, Jul 4, 2005, 1:22 pm)
Return to the Windows 98 Discussion Forum

All content at Annoyances.org is Copyright © 1995-2008 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.