1 year ago

#356079

test-img

Dick

How to add disk in zip using DotNetZip

I use DotNetZip for creating zips. It has many option but I couldn't find if it is possible to store the disk where the file is located, in the archive. E.g. like the Absolute mode in 7-Zip. As far as I can see I can only do this:

zip.AddFile(cFileFull, cPath);

When cFileFull is e.g. "c:\temp\SomeFile.txt" and cPath = "c:\temp" opening the zipfile shows

temp

while I would like to see C and then, when I click on C temp

This allows storing the same path/file found on different drives. Is this possible?

drive

dotnetzip

0 Answers

Your Answer

Accepted video resources