|
TABLE 10.2: Typical Commands in an Autoexec.bat File |
| Line |
Purpose |
C:MTM\Mscdex.exe /d:MTMIDEOI/m:10 |
Runs the Mscdex.exe utility that coordinates with the CD-ROM driver to provide access to the CD-ROM. This line is usually added by the CD-ROM configuration utility. |
| C:\DOS\Smartdrv.exe |
Loads the Smartdrv.exe file from the DOS directory. |
| @Echo Off |
Turns off printing to the screen. The commands following this line are not be displayed on screen. The command starts with Echo Off; the @ symbol makes the command start immediately. |
| Echo on |
The opposite of Echo Off. Echo On causes the commands in a batch file to be printed to the screen as they are executed. |
| Prompt $p$g |
Sets the prompt to reflect the current directory (e.g., C:\DOS>). Without it, your prompt would only be a greater than symbol (>) and a flashing cursor. |
| Path: C:\Win3x; C:\DOS |
Names the directories that the operatins system will query for programs executed from the command line. |
| Set Temp = C:\DOS |
Sets the temporary directory location. Many programs store data temporarily in this directory. |
| C:\DOS\Doskey |
Launches the Doskey TSR, which allows you to recall previous commands via the up and down arrow keys. |
| Time |
Prompts the user to type the time. |
| Date |
Prompts the user to type the date. |
| Cls |
Clears the screen of all characters and lines. |