Menu
Passing Arguments to Batch Files

Learn how to pass arguments to a batch file and read them with %1 and %2. Covers call versus start, counting arguments,

UAC Auto-Elevation

Learn how to make a batch file automatically display the UAC elevation dialog and restart itself with administrator priv

How to Create a Batch File

A beginner-friendly guide to creating batch files (.bat). Learn how to make one in Notepad, what @echo off means, how to

Calculation (Arithmetic)

Use set /a to do math in Command Prompt and batch files. Covers arithmetic, remainders (%%), counters, random numbers, a

Chaining Commands

Learn the differences between &, &&, and || for running multiple commands on one line in Command Prompt. Covers grouping

arp - Check IP-to-MAC Address Mappings

Learn how to use the arp command to check the table (ARP table) that maps IP addresses to MAC addresses for devices on t

assoc / ftype - File Associations

Learn how to view and change the link between file extensions and apps using the assoc and ftype commands in Command Pro

attrib - Change file attributes

Use the attrib command in Command Prompt to view and change file and folder attributes: read-only, hidden, system, and a

call - Execute Other Batch Files

Learn how to run another batch file from a batch file with the call command. Covers why control does not return without

cd/chdir - Changing Directories

Learn how to change directories with the cd (chdir) command in Command Prompt and batch files: moving to a parent direct