Maintain complete directory structure while compressing...

Aug 22, 2010 at 9:35 AM
Edited Aug 22, 2010 at 9:36 AM

Hello friends,

I want to maintain complete directory structure while compressing files/directory.

For example

if i want to compress file c:\Windows\temp\samplefile.txt

then it should be compress in 7z archive as

samplearchive.7z -> c -> windows -> temp -> samplefile.txt

not as samplearchive.7z -> samplefile.txt

please suggest any solution.

Thanks in advanced.