• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Fundamental » Computer » What is AUTOEXEC.BAT File?
Next →
← Prev

What is AUTOEXEC.BAT File?

By Dinesh Thakur

The name of this batch file comes from a combination of the words automatically executed batch file. Like other batch files, AUTOEXEC.BAT contains a series of DOS commands that your (IBM-compatible) PC runs for you, one after the other, so that you don’t have to type the commands individually. It gives the computer various basic instructions about starting Windows, running antivirus checks in the background, identifying the keyboard, and so on.

The file was typically used to issue configuration and initialization commands to the operating system and PERIPHERAL devices such as CD-ROM drives and sound cards, a typical entry being. What’s special about AUTOEXEC.BAT is just that DOS automatically runs this particular batch file each time you turn on or restart the computer. Most people wind up calling AUTOEXEC.BAT the “AUTOEXEC” file for short.

AUTOEXEC.BAT must be stored in the ROOT DIRECTORY of the computer’s BOOT DRIVE in order to be found and executed, and the commands it contains follow the same syntax as any other MS-DOS BATCH File, that is, a list of operating system commands exactly as they would be typed manually at the COMMAND PROMPT, plus certain control structures such as GOTO that cannot be deployed manually.

You can customize the AUTOEXEC file yourself, filling it with exactly the commands you want to get your system up and running to your specifications and to suit the needs of your software and peripherals. AUTOEXEC.BAT is typically used to set the look of the DOS prompt, tell DOS which directories it should search when looking for programs to run, configure the serial ports, load the mouse driver, and start memory resident programs and utilities. If you like, you can use the AUTOEXEC file to start a particular application program (such as your word processor) or to start Windows.

Here’s an excerpt from a typical AUTOEXEC.BAT file:

PROMPT $p$g

PATH=C: \ WINDOWS;C: \DOS;C: \ UTILS

SET TEMP=D: \ TEMP

These lines set the DOS prompt to show the current directory; set the DOS path; and tell the system to look for temporary files in the D: \ TEMP directory.

We’ll be covering the following topics in this tutorial:

  • BOOT
  • BATCH FILE
  • DOS PROMPT

BOOT

The process of starting or restarting a computer. Boot is a process that the computer goes through to get ready to receive input. During this boot process, certain configuration files, such as the AUTOEXEC.BAT, are used. For example, at startup, the commands in AUTOEXEC.BAT are executed one at a time automatically, without the user typing them in.

BATCH FILE

A type of executable file that contains a “batch” or listing of DOS commands to be executed in order, as if the user had typed each one in separately. One example of a batch file is the AUTOEXEC.BAT, whose instructions are executed whenever the system is booted.

DOS PROMPT

A symbol that indicates DOS is ready for the next command. The DOS prompt generally looks like C:\>, but it can be changed by commands in AUTO.EXEC.BAT.

You’ll also like:

  1. Write a Program to Copy a File using File Handling Functions.
  2. Write a Program to Count Vowels in a File Using File Handling
  3. What is File Organizations? Types of File Organization.
  4. Copy Data From One File to Another File in Java Example
  5. File input Stream and File Output Stream
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

Computer Fundamental

Computer Fundamental

  • Computer - Home
  • Computer - What is Computer
  • Computer - Definition
  • Computer - Block Diagram
  • Computer - Generations
  • Computer - Characteristic
  • Computer - Advantages
  • Computer - Types
  • Computer - Who Invented
  • Computer - Analytical Engine
  • Computer - Uses
  • Computer - Von Neumann model
  • Computer - Classification
  • Computer - Components
  • Computer - CPU
  • Computer - Bios
  • Computer - ALU
  • Computer - Boot
  • Computer - Control Unit
  • Computer - Bus
  • Computer - ISA Bus
  • Computer - MCA Bus
  • Computer - 32-bit
  • Computer - CPU Cache
  • Computer - Coprocessor
  • Computer - ENIAC
  • Computer - Semiconductor
  • Computer - EISA
  • Computer - BIOS Works
  • Computer - DMA
  • Computer - Floppy
  • Computer - Society Impact
  • Computer - AUTOEXEC.BAT
  • Computer - Batch File
  • Computer - Cloud Computing
  • Computer - Grid Computing
  • Computer - Parallel Computing
  • Computer - Docking Station
  • Computer - 32-Bit vs. 64-Bit
  • Computer - Important Features

Different Computer Types

  • Computer - Supercomputer
  • Computer - Personal Computer
  • Computer - Minicomputer
  • Computer - Microcomputer
  • Computer - Analog
  • Computer - Mainframe
  • Computer - Digital
  • Computer - Laptop
  • Computer - NetBook
  • Computer - Ultrabook

Data and Information

  • Computer - Data and Information
  • Computer - Information Technology
  • Computer - Types of IS
  • Computer - Issues in IT

Other Links

  • Computer - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW