UnpackFile Method (fileName, destFileName)

DTF API

Copy image CopyHover image
Deployment Tools Foundation UnpackFile Method (fileName, destFileName)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveInfoUnpackFile(String, String)
Extracts a single file from the archive.
Declaration Syntax
C# Visual Basic Visual C++ F#
public void UnpackFile(
	string fileName,
	string destFileName
)
Public Sub UnpackFile ( 
	fileName As String,
	destFileName As String
)
public:
void UnpackFile(
	String^ fileName, 
	String^ destFileName
)
member UnpackFile : 
        fileName : string * 
        destFileName : string -> unit 
Parameters
fileName (String)
The name of the file in the archive. Also includes the internal path of the file, if any. File name matching is case-insensitive.
destFileName (String)
The path where the file is to be extracted on disk.
Remarks
If destFileName already exists, it will be overwritten.

Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.11.1.2318)