public void ExtractISO(string toExtract, string folderName)
        {
            // reads the ISO
            CDReader Reader = new CDReader(File.Open(toExtract, FileMode.Open), true);
            // passes the root directory the folder name and the folder to extract
            ExtractDirectory(Reader.Root, folderName /*+ Path.GetFileNameWithoutExtension(toExtract)*/ + "\\", "");

            // clears reader and frees memory
            Reader.Dispose();
            docvmextract = true;
        }
Example #2
0
 private static void ExtractISO(string ISOName, string ExtractionPath)
 {
     using (FileStream ISOStream = File.Open(ISOName, FileMode.Open))
     {
         CDReader Reader = new CDReader(ISOStream, true, true);
         ExtractDirectory(Reader.Root, ExtractionPath, "");
         Reader.Dispose();
     }
 }