Windows: AUTOEXEC.BAT Is Not Run During Boot

Article translations Article translations
Article ID: 71522 - View products that this article applies to.
This article was previously published under Q71522
Expand all | Collapse all

SUMMARY

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.

MORE INFORMATION

The "SHELL=" statement tells the system what command processor to load during boot up. Most often this is used to load the MS-DOS COMMAND.COM to increase the environment space. The correct syntax for this is:
SHELL=C:\DOS\COMMAND.COM /E:512 /P
				
In the example above, the "/E:" parameter is increasing the MS-DOS environment to 512 bytes (the default is 160 bytes).

The "/P" parameter tells COMMAND.COM that this instance of itself is permanent. Without this parameter, COMMAND.COM would load itself into memory, then terminate that instance of itself. In doing so, the process of running the AUTOEXEC.BAT file is skipped.

REFERENCES

"The MS-DOS Encyclopedia," pages 782-783. Microsoft Press, 1988.

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

Properties

Article ID: 71522 - Last Review: September 24, 2011 - Revision: 3.0
APPLIES TO
  • Microsoft Windows 3.0 Standard Edition
Keywords: 
KB71522

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com