Extracts a file from a compressed file. Use this command to extract a driver file from a cabinet (.cab) or compressed file.
The expand command with the parameters listed below is only available when you are using the Recovery Console The expand command with different parameters is available from the command prompt.
expand source [/F:filespec}] [destination] [/d] [/y]
Specifies the file to expand. Use this if the source file contains a single file. Source can consist of a drive letter and a colon, a directory name, a file name, or a combination. You cannot use wildcard characters.
If the source contains more than one file, this specifies the name of the file you want to extract. You can use wildcards for the files you want to extract.
Specifies both the destination directory and file name for the extracted file, or each individually.
Lists the files contained in the cabinet file without expanding it or extracting from it.
Suppresses the overwrite prompt when expanding or extracting files.
The following example extracts the file Msgame.sys from the Drivers cabinet file on a Setup CD and copies it to C:\Windows\System\Drivers:
expand d:\i386\driver.cab /f:msgame.sys c:\Windows\system\drivers
The following example expands the compressed file Access.cp_:
expand d:\i386\acces.cp_ c:\Windows\system32\access.cpl
The following example lists all the files in the Drivers cabinet file on the Setup CD:
expand /d d:\i386\driver.cab