IsoArchive.ExtractToDirectory

IsoArchive.ExtractToDirectory method

Extracts all entries to the specified directory.

public void ExtractToDirectory(string destinationDirectory)
ParameterTypeDescription
destinationDirectoryStringThe directory to extract the entries to.

Exceptions

exceptioncondition
InvalidOperationExceptionThrown when the archive is in editing mode.
ArgumentNullExceptionThrown when the destinationDirectory is null.

Examples

The following example shows how to extract all entries to a directory:

using (var archive = new IsoArchive(File.OpenRead("archive.iso")))
{ 
   archive.ExtractToDirectory("C:\\extracted");
}

See Also