Windows: AUTOEXEC.BAT Is Not Run During Boot

This article was previously published under Q71522
This article has been archived. It is offered "as is" and will no longer be updated.
The AUTOEXEC.BAT file is not run when you boot your computer if the"SHELL=COMMAND.COM" statement in the CONFIG.SYS file is missing the "/P"parameter.
The "SHELL=" statement tells the system what command processor to loadduring boot up. Most often this is used to load the MS-DOS COMMAND.COM toincrease the environment space. The correct syntax for this is:
In the example above, the "/E:" parameter is increasing the MS-DOSenvironment to 512 bytes (the default is 160 bytes).

The "/P" parameter tells COMMAND.COM that this instance of itself ispermanent. Without this parameter, COMMAND.COM would load itself intomemory, then terminate that instance of itself. In doing so, theprocess of running the AUTOEXEC.BAT file is skipped.
"The MS-DOS Encyclopedia," pages 782-783. Microsoft Press, 1988.

"Supercharging MS-DOS," pages 106-115. Microsoft Press, 1989.

Article ID: 71522 - Last Review: 12/04/2015 09:07:30 - Revision: 3.0

Microsoft Windows 3.0 Standard Edition

  • kbnosurvey kbarchive KB71522