Article ID: 148919 - View products that this article applies to.
This article was previously published under Q148919
This behavior can occur if Win.com is called from the Autoexec.bat file using the /W or /WX switch.
To resolve this issue, follow these steps:
The /W and /WX switches are typically used to restore the original Config.sys and Autoexec.bat files and restart the computer after you restart your computer in MS-DOS mode. The /W switch on the Win.com line causes Win.com to rename the current Config.sys and Autoexec.bat files to Config.app and Autoexec.app, restore the original Config.sys and Autoexec.bat files from the Config.wos and Autoexec.wos files, delete the Config.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 /WX switch 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 you restart your computer in MS-DOS mode, the original Config.sys and Autoexec.bat files are successfully restored from the Config.wos and Autoexec.wos files, and Windows starts normally after the computer is rebooted. However, if you use the /W or /WX switch in the Autoexec.bat file at any other time, the Config.wos and Autoexec.wos files do not exist and the current Config.sys and Autoexec.bat files remain in the root folder of the boot drive. Because the /W or /WX switch remains in the Autoexec.bat file, Windows restarts continuously.
For additional information about the process that occurs when you restart your computer in MS-DOS mode, please see the following article in the Microsoft Knowledge Base:
TITLE : Description of Restarting Computer in MS-DOS Mode
Contact us for more help
Connect with Answer Desk for expert help.