Windows Restarts Continuously

This article was previously published under Q148919
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
When you start your computer, Windows may restart continuously
CAUSE
This behavior can occur if Win.com is called from the Autoexec.bat fileusing the /W or /WX switch.
RESOLUTION
To resolve this issue, follow these steps:
  1. Restart your computer.

    Windows 95:

    Restart your computer. When you see the "Starting Windows 95" message, press the F8 key, and then choose Safe Mode Command Prompt Only from the Startup menu.

    Windows 98:

    Restart your computer, press and hold down the CTRL key after your computer completes the Power On Self Test (POST), and then choose Safe Mode Command Prompt Only from the Startup menu. For more information about Windows 98 startup, see the following article in the Microsoft Knowledge Base:
    ARTICLE-ID: 178548
    TITLE : No "Starting Windows 98" Message at Startup
  2. Type the following line and then press ENTER:

    edit autoexec.bat

  3. Locate the line that reads:

    win.com /W

    -or-

    win.com /WX
  4. Remove the "win.com" line.
  5. Save and then close the Autoexec.bat file.
  6. Restart the computer.
MORE INFORMATION
The /W and /WX switches are typically used to restore the originalConfig.sys and Autoexec.bat files and restart the computer after yourestart your computer in MS-DOS mode. The /W switch on the Win.com linecauses Win.com to rename the current Config.sys and Autoexec.bat files toConfig.app and Autoexec.app, restore the original Config.sys andAutoexec.bat files from the Config.wos and Autoexec.wos files, delete theConfig.wos and Autoexec.wos files, and then display the following message:
Press any key to continue...

When a key is pressed, the computer is rebooted to Windows. If the /WXswitch is used instead of the /W switch, Win.com performs the same steps,but does not display the above message.

When the /W or /WX switches are used in the Autoexec.bat file after yourestart your computer in MS-DOS mode, the original Config.sys andAutoexec.bat files are successfully restored from the Config.wos andAutoexec.wos files, and Windows starts normally after the computer isrebooted. However, if you use the /W or /WX switch in the Autoexec.batfile at any other time, the Config.wos and Autoexec.wos files do not existand the current Config.sys and Autoexec.bat files remain in the rootfolder of the boot drive. Because the /W or /WX switch remains in theAutoexec.bat file, Windows restarts continuously.

For additional information about the process that occurs when you restartyour computer in MS-DOS mode, please see the following article in theMicrosoft Knowledge Base:
ARTICLE-ID: 138996
TITLE : Description of Restarting Computer in MS-DOS Mode
loop reboots reboot
Properties

Article ID: 148919 - Last Review: 12/04/2015 14:25:50 - Revision: 1.2

Microsoft Windows 95, Microsoft Windows 98 Standard Edition

  • kbnosurvey kbarchive kbenv kbprb KB148919
Feedback