Export (0) Print
Expand All

Expand

Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Expand

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

Syntax

expand [-r] Source Destination

expand -r Source [Destination]

expand -d Source .cab [-f:Files]

expand Source .cab -f: Files Destination

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

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft