MS-DOS — Command Reference
Most used MS-DOS / Windows command line (batch, .bat) commands — automation and system scripts. NOTE: Since it requires the Windows command interpreter, it cannot be run here; examples are for educational purposes.
5 categories · 8 commands
🖥️
Output
Printing with echo.
echo📦
Variables
Variables and arithmetic with set.
set / %variable%set /a (arithmetic)🔀
Condition
Decision making with if.
if / else🔁
Loop
Iteration with for.
for (items)for /l (numeric)⚙️
Commands & Flow
Frequently used commands and labels.
cd / dir / copy / delgoto / :label / call