Using (FileStream Fs = File.Create(RootPath + "\\" + finfo.Name)) // Here you can Set the BufferSize Also e.g. Using (Stream FileStr = finfo.OpenRead()) If (!string.IsNullOrWhiteSpace(PathinISO))įoreach (DiscDirectoryInfo dinfo in Dinfo.GetDirectories())ĮxtractDirectory(dinfo, RootPath, PathinISO) įoreach (DiscFileInfo finfo in Dinfo.GetFiles()) Private void ExtractDirectory(DiscDirectoryInfo Dinfo, string RootPath, string PathinISO) passes the root directory the folder name and the folder to extractĮxtractDirectory(Reader.Root, folderName /*+ Path.GetFileNameWithoutExtension(toExtract)*/ + "\\", "") UPDATED with answer code private void ExtractISO(string toExtract, string folderName)ĬDReader Reader = new CDReader(File.Open(toExtract, FileMode.Open), true) I'm having a problem with winrar as it will not start the extract when I start up with the seach starting in the folder with the ISO. I'm trying to extract an ISO to a folder with the same name without.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |