Command Prompt Textbook

A learning site where you can intuitively understand how to use the command prompt with practical and graphical samples. We also have plenty of practice problems to help you acquire knowledge.

Introduction to Command Prompt

List of Commands

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

CERTUTIL - Hash Values & Base64

Learn how to use the CERTUTIL command to calculate SHA-256 or MD5 hashes and check that a downloaded file is not corrupt

chcp - Switch the Character Encoding

Learn how to check and change the Command Prompt code page with the chcp command. Covers 932 (Shift_JIS) vs 65001 (UTF-8

chkdsk - Check and Repair Disk Errors

Learn how to scan and repair drive errors and bad sectors with the chkdsk command. Covers the difference between /f and

choice - Prompt the user for input

Use the choice command to let the user pick Yes/No or other options in the command prompt or a batch file. Learn the /c,

CLIP - Copy to Clipboard

Learn how to use the CLIP command to copy command output or text file contents to the clipboard. Covers pipes and redire

cls - Clear Screen

Learn how to clear the Command Prompt screen with the cls command. This guide covers batch file usage, differences from

Tips

Read More