Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
How to Exit Windows 98/Me Automatically Using a Batch File
Article ID: 234216 - View products that this article applies to.
This article was previously published under Q234216
This article describes commands that you can use to create a batch file that automatically restarts Windows 98 or Windows Millennium Edition (Me).
You can use either of the following commands in a batch file to restart Windows 98/Me automatically:
rundll32.exe shell32.dll,SHExitWindowsEx 6NOTE: Using the FORCE option can cause programs to lose data.
Below is an explanation of each available option used with the above command line:
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:
(http://support.microsoft.com/kb/137367/EN-US/ )Definition of the RunOnce Keys in the Registry