The AUTOEXEC.BAT file contains commands that are automatically executed
when the DOS operating system is booted. The AUTOEXEC.BAT file is a basic
batch file.
@ECHO OFF
LOADHIGH C:\DOS\SMARTDRV.EXE
PATH=C:\DOS;C:\;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\UTILS
VERIFY ON
PROMPT=$p$g
@ECHO OFF: - Tells DOS not to display the commands as they are executed.
LOADHIGH: - The loadhigh command tells DOS to load the program in upper memory, thus conserving conventional memory for application programs.
LOADHIGH C:\DOS\SMARTDRV.EXE 2048 128: - SMARTDRV.EXE is a disk caching program. A cache uses a high speed device to temporarily hold data from a slower speed device so that the CPU can access that data from the high speed device. Smartdrv uses memory to temporarily hold the data from disk. When you read data from disk the first time, it is loaded into the cache. The second time, the data is accessed from the cache. As the cache fills up, the data that has not been accessed for a long time is discarded from the cache.
PATH=C:\DOS;C:\: When you type in a command, MS-DOS searches the current directory for the command (exe or com file). If the command is not found, it searches all the directories specified in the PATH environment variable. If possible, keep your path short since every time you type in a bad command, DOS will have to read every directory in the path before responding "Bad command or filename". Also try to list the path in the order of how many times you expect to access a given directory. That is place the directories you call most often early in your path.
VERIFY ON: - If VERIFY is set to ON, DOS will confirm each use of the COPY command to copy a file was successful with a file CRC check.
PROMPT=$p$g: - This will display the default "C:\>" prompt.