Expand Utility

The expand utility (EXPAND.EXE) restores compressed files to their original size. Expand determines the compression type used and automatically decompresses it. You can also use the VerInstallFile function to expand MS_ZIP files.

To use expand, use the following syntax:

EXPAND [[options]] source destination
 

[[options]]

/?
Displays information on using Expand.
/r
Specifies that expanded files should be renamed.
source
Specifies the source filename. The filename can include a drive letter, a directory path, or both; it can also contain wildcards.
destination
Specifies the destination. This parameter can consist of a directory (with optional drive letter), a filename, or any combination of the two.

If the source parameter contains wildcards and the destination parameter does not specify a directory, the file must be renamed using the /r option.

If the destination parameter does not contain a filename, the filename specified in the source option will be used when the file is copied to the location specified by the destination parameter.