![Forrest logo](/images/logo.png)
expand:tldr:63532
The command "expand" is used to extract the contents of a Microsoft Cabinet (CAB) file. The syntax of the command is as follows:
expand ${source_cab_file} ${destination_directory} -i
In this command, the "${source_cab_file}" specifies the path to the CAB file that you want to extract. The "${destination_directory}" represents the path to the directory where you want the extracted files to be saved.
The "-i" option is an optional flag that indicates that the resulting files should be displayed in their long file names. Without this flag, the files would be shown in their abbreviated 8.3 file names.
So, in your specific example:
expand ${path\to\file-cab} ${path\to\directory} -i
You would replace "${path\to\file-cab}" with the actual path to the CAB file you want to extract, and "${path\to\directory}" with the desired directory where you want the contents to be extracted. The "-i" flag is included to display long file names.