The information in this article applies to:
SUMMARY
This article describes how to run commands automatically when you use
the "Restart the computer 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:
- Start Notepad.
- Type the commands you want in the Dosstart.bat file in the empty
Notepad file.
- On the File menu, click Save As.
- Save the file as Dosstart.bat in the Windows folder.
- Quit Notepad.
When you restart your computer using the "Restart the computer 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:
a. Click the Start button, and then click Shut Down.
b. In the Shut Down Windows dialog box, click "Restart the
computer in MS-DOS mode," and then click Yes.
c. At the command prompt, type "exit" (without quotation
marks), and then press ENTER.
- On the Program tab, click Advanced.
- Click the Specify A New MS-DOS Configuration option.
- Enter the appropriate lines for the Config.sys file for MS-DOS mode
in the Config.sys For MS-DOS Mode box.
- Enter the appropriate lines for the Autoexec.bat file for MS-DOS mode
in the Autoexec.bat For MS-DOS Mode box.
- Click OK.
- Click OK.
If you "Specify a new MS-DOS configuration", then the specified Config.sys
& Autoexec.bat files are processed & Dosstart.bat is not. If you "Use
current MS-DOS configuration", the current Config.sys & Autoexec.bat files
are processed, and then the commands in the Dosstart.bat file are run.
|