setlocal and endlocal limit the scope of variables in a batch file. This article explains basic usage, delayed expansion
Learn how to shut down, restart, log off, or hibernate Windows from the command line with the SHUTDOWN command. Covers t
Learn how to use the SORT command in Command Prompt to sort lines from a file or command output. Covers descending order
The start command launches other programs or batch files asynchronously from a batch file. This article explains basic u
Learn how to use the SYSTEMINFO command to view Windows OS details, memory, network settings, install date, and other sy
Learn how to terminate processes with the taskkill command: by name or PID, the /F and /T options, closing unresponsive
Learn how to list running processes with the tasklist command: check whether an app is running, filter by memory usage,
Use the timeout command to wait for a specified time (like sleep or wait) in the command prompt or a batch file. Learn t
Learn how to display the contents of a text file with the type command, the equivalent of the Unix cat command. Covers d
Learn how to use the WHERE command to find where a command or executable file is located. Covers PATH-based search, wild