Extract Method

Extract the file from the package and store it on the local system.

Syntax

object.Extract filename

The Extract method syntax has the following parts:

Part Description
object An object expression that evaluates to a PackageFile object.
filename A string which specifies the local file name that the contents of the file will be extracted into.

Remarks

The Extract method stores the contents of the current file on the local system. It is important to note that this is not the same as applying the file. There are no checks performed to ensure that the correct version of a file is being extracted. If the file is stored in the package as a patch, this will create a patch file which can be used with the PatchFile control. If the complete file is stored in the package, it will be uncompressed and stored as-is on the local system.

If the current PatchFile object references a file that is to be deleted from the target system, calling the Extract method will result in an error.