Computer and Software Support


Expand

This page is from Microsoft

Updated: January 21, 2005

Expands one or more compressed files. You can use this command to retrieve compressed files from distribution disks.

 
 
Syntax
expand [-r] Source Destination

expand-rSource [Destination]

expand-dSource.cab [-f:Files]

expandSource.cab-f:FilesDestination

Parameters
-r
Renames expanded files.
Source
Specifies the files to expand. Source can consist of a drive letter and colon, a directory name, a file name, or a combination of these. You can use wildcards (that is, * or ?).
Destination
Specifies where files are to be expanded. If Source consists of multiple files and you do not specify -r, Destination must be a directory. Destination can consist of a drive letter and colon, a directory name, a file name, or a combination of these.
-d
Displays a list of files in the source location. Does not expand or extract the files.
-f:Files
Specifies the files in a cabinet (.cab) file that you want to expand. You can use wildcards (that is, * or ?).
/?
Displays help at the command prompt.
Remarks
  • Using expand at the Recovery Console

    The expand command, with different parameters, is available from the Recovery Console.

     

 

Formatting legend

Format Meaning
Italic Information that the user must supply
Bold Elements that the user must type exactly as shown
Ellipsis (...) Parameter that can be repeated several times in a command line
Between brackets ([]) Optional items
Between braces ({}); choices separated by pipe (|). Example: {even|odd} Set of choices from which the user must choose only one
Courier font Code or program output