Forrest logo
back to the expand tool

expand:tldr:63532

expand: Ignore the directory structure when uncompressing, and add them to a single directory.
$ expand ${path\to\file-cab} ${path\to\directory} -i
try on your machine

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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the expand tool