SiamIT
Well-known member
- Joined
- Aug 3, 2021
- Messages
- 53
- Programming Experience
- 5-10
i was trying/finding for a solution that i can use unzip/extract 7zip file natively in c#..
till now i was trying 7zdec.exe (console) application that i can invoke using process command. but it's not that user friendly as i need to track the progress properly on front end (my app/form/window)
so, after some digging (research) i found following nice link/reference that use 7z.dll inside c# to extract (extract only) 7z file and can monitor the progress (only files level)..
Initial Version
so, i have tried a bit.. but on testing i found a big issue.. it can only extract 1st file, if i try with next/2nd file.. it fails..
and i even try to download/test the latest/last updated version from developer site:
Updated Version
But that has the same issue as well..
so, can any one please check the source and debug/fix it, as i have tried my level best but failed
thanks in advance
best regards
till now i was trying 7zdec.exe (console) application that i can invoke using process command. but it's not that user friendly as i need to track the progress properly on front end (my app/form/window)
so, after some digging (research) i found following nice link/reference that use 7z.dll inside c# to extract (extract only) 7z file and can monitor the progress (only files level)..
Initial Version
so, i have tried a bit.. but on testing i found a big issue.. it can only extract 1st file, if i try with next/2nd file.. it fails..
CLI Params For The Demo:
SevenZip e {ArchiveName} {FileNumber}
Sample That works!:
SevenZip e "c:\test.7z" 0
Sample That Fails:
SevenZip e "c:\test.7z" 1
and i even try to download/test the latest/last updated version from developer site:
Updated Version
But that has the same issue as well..
so, can any one please check the source and debug/fix it, as i have tried my level best but failed
thanks in advance
best regards