The expand command is a command prompt that allows you to extract a single file or a group of files from a compressed file.
This command is typically used to replace damaged files in the operating system by extracting working copies of files from the original compressed files on the operating system CD.
The expand command is available through the Command Prompt in modern versions of Windows, such as Windows 11 and Windows 10, and through the Recovery Console in Windows 2000 and XP.
Use the following syntax for the expand command: