Microsoft KB Archive/141308

= How to Run Automatic Commands When Starting in MS-DOS Mode =

Article ID: 141308

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Windows 95
 * Microsoft Windows 98 Standard Edition
 * Microsoft Windows 98 Second Edition

-



This article was previously published under Q141308



SUMMARY
This article describes how to run commands automatically when you use the "Restart the computer in MS-DOS mode" or "Restart in MS-DOS mode" option to restart your computer.



MORE INFORMATION
When you restart your computer in MS-DOS mode, any commands in the Dosstart.bat file are carried out. You can place commands you want to be run when you restart your computer in MS-DOS mode in the Dosstart.bat file. To do so, follow these steps:


 * 1) Start Notepad.
 * 2) Type the commands you want in the Dosstart.bat file in the empty Notepad file.
 * 3) On the File menu, click Save As.
 * 4) Save the file as Dosstart.bat in the Windows folder.
 * 5) Quit Notepad.

When you restart your computer using the "Restart the computer in MS-DOS mode" or "Restart in MS-DOS mode" option, the "Exit to Dos" file is processed. If you want to use a different Config.sys or Autoexec.bat file for MS-DOS mode, modify the "Exit to Dos" file. To modify the "Exit to Dos" file, follow these steps:

 Use the right mouse button to click the "Exit to Dos" file in the Windows folder, and then click Properties on the menu that appears.

NOTE: If the "Exit to Dos" file does not exist in the Windows folder, create it with the following steps, and then try step 1 again:  Click the Start button, and then click Shut Down. In the Shut Down Windows dialog box, click "Restart the computer in MS-DOS mode", and then click Yes. At the command prompt, type exit, and then press ENTER.  On the Program tab, click Advanced. Click the Specify A New MS-DOS Configuration option.</li> Enter the appropriate lines for the Config.sys file for MS-DOS mode in the Config.sys For MS-DOS Mode box.</li> Enter the appropriate lines for the Autoexec.bat file for MS-DOS mode in the Autoexec.bat For MS-DOS Mode box.</li> Click OK.</li> Click OK.</li></ol>

If you specify a new MS-DOS mode configuration, the specified Config.sys and Autoexec.bat files are processed and the Dosstart.bat file is not processed. If you use the current MS-DOS configuration, the current Config.sys and Autoexec.bat files are processed, and then the commands in the Dosstart.bat file are run.

Keywords: kbenv kbhowto KB141308

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.