expand | new in WS2003 |
Extracts 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
Names of files to extract (can include path and wildcards).
Where to extract the files to (path). When extracting multiple files without the -r switch, the destination must be a directory.
Displays source files but doesn't extract them.
Specifies files in a cabinet ( .cab ) file that you want to expand (can use wildcards).
Renames files after extracting them.
Display the compressed files within the DEPLOY.CAB file in \SUPPORT\TOOLS on the product CD:
expand D:\SUPPORT\TOOLS\DEPLOY.CAB -d Microsoft (R) File Expansion Utility Version 5.2.3763.0 Copyright (c) Microsoft Corporation. All rights reserved. d:\support\tools\deploy.cab: cvtarea.exe d:\support\tools\deploy.cab: oformat.com d:\support\tools\deploy.cab: setupmgr.exe d:\support\tools\deploy.cab: factory.exe d:\support\tools\deploy.cab: setupcl.exe d:\support\tools\deploy.cab: sysprep.exe d:\support\tools\deploy.cab: deploy.chm d:\support\tools\deploy.cab: readme.txt d:\support\tools\deploy.cab: ref.chm 9 files total.
Expand Setup Manager to the \stuff folder on C : drive:
expand D:\SUPPORT\TOOLS\DEPLOY.CAB -f:setupmgr.exe C:\stuff Microsoft (R) File Expansion Utility Version 5.2.3763.0 Copyright (c) Microsoft Corporation. All rights reserved. Expanding d:\support\tools\deploy.cab to c:\stuff\setupmgr.exe.
Verify the result:
dir c:\stuff Volume in drive C has no label. Volume Serial Number is D405-058E Directory of c:\stuff 03/26/2003 12:14 PM <DIR> . 03/26/2003 12:14 PM <DIR> .. 02/04/2003 07:08 PM 529,408 setupmgr.exe 1 File(s) 529,408 bytes 2 Dir(s) 8,047,779,840 bytes free
This command is also available from the Recovery Console.
Recovery Console