thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

IT Support & Hardware · Foundational

Batch File

A Windows script file (.bat or .cmd) containing Command Prompt commands run in sequence.

Definition

Batch files automate tasks like drive mapping, file copies, and cleanup. They support variables, IF statements, FOR loops, and calling other programs. PowerShell (.ps1) is the more capable modern scripting option.

Example

A logon.bat file that runs net use to map department drives.

Exam tip

Know script extensions: .bat (batch), .ps1 (PowerShell), .vbs (VBScript), .sh (shell), .js (JavaScript), .py (Python).

Related terms