public void Extract(string inputFile, string outputDir) { PSArcXmlFile xml = new PSArcXmlFile(PSArcXmlFile.XmlFileType.Extract); xml.OutputFileName = outputDir; xml.AddPakToExtract(inputFile); Extract(xml); }
public void Extract(string inputFile, string outputDir, params string[] archiveFiles) { PSArcXmlFile xml = new PSArcXmlFile(PSArcXmlFile.XmlFileType.Extract | PSArcXmlFile.XmlFileType.ByFile); xml.OutputFileName = outputDir; xml.AddPakToExtract(inputFile); foreach (string s in archiveFiles) { xml.AddFileToExtract(s); } Extract(xml); }