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’s CD.

Expand Command Availability

The expand command is available from the Command Prompt in modern versions of Windows, as well as from within the Recovery Console in Windows 2000 and XP.

Expand Command Syntax

Use the following syntax for the expand command:

expand source [destination] [/r] [/i] [/d] [/f [:filespec]] [/y]

In this example, all the files contained in the compressed file driver.cab are displayed on the screen. No files are actually extracted to the computer.