Expand
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
Expands one or more compressed files. You can use this command to retrieve compressed files from distribution disks.
expand [-r] Source Destination
expand -r Source [Destination]
expand -d Source .cab [**-f:**Files]
expand Source .cab -f: Files Destination
- -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.
Using expand at the Recovery Console
The expand command, with different parameters, is available from the Recovery Console.
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 |
|
Code or program output |