Learn how to copy and paste text in Command Prompt. Ctrl+C and Ctrl+V work in Windows 10/11, while older versions or cer
Learn how to create a 0-byte empty file from Command Prompt or a batch file using type nul, copy nul, and echo;, with co
Learn how to create folders from Command Prompt or a batch file with the mkdir (md) command: nested folder structures, n
Use the cd command to display the current directory in Command Prompt or a batch file. Learn the difference between %cd%
Learn how to get and format the date and time in batch files. Covers the %DATE% and %TIME% variables, using them in file
Fix variables that do not update inside FOR loops and IF blocks in batch files. Learn how setlocal enabledelayedexpansio
How to delete files and folders in Command Prompt and batch files. Covers when to use del and rmdir, wildcards, deleting
Learn the causes of garbled text in the command prompt and batch files, and how to fix it. Covers changing the code page
Learn how to set session-only variables with the set command and persistent environment variables with the setx command.
Learn how to handle errors in batch files with ERRORLEVEL (exit codes): checking results, branching on errors, setting c