This is my 2nd post regarding maintain complete directory structure while compressing, This time i will explain in more detail about my requirement,hope this time you will help me.
Below is my code snippet:
string filePath = "c:\Windows\temp\samplefile.txt";
string outPath = "c:\samplearchive.7z";
public SevenZipCompressor cmp = new SevenZipCompressor();
cmp.PreserveDirectoryRoot = true;
cmp.CompressionMode = CompressionMode.Create;
when i extract samplearchive.7z i got 1 folder samplearchive and samplefile.txt inside.
What i want to know is that is it possible to preserve complete directory structure like:
when i extract samplearchive.7z i should get below folder structure
c -> Windows -> temp -> samplefile.txt
not as samplearchive - > samplefile.txt
please suggest is it possible or i am using older version to achive this functionality.
Thanks and Regards,
i have solve the problem...thanx for a gr8 application...