コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Wargog/MakeBoot
 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();
     }
 }