Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Full path name of zipped files

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19614 |

    How can I store the full path names of files inside a zip file? I’m zipping the files located in c:\Documents And Settings\[Username]\ and it’s not storing this path name inside the zip file.

    Imported from legacy forums. Posted by jnavarro (had 2446 views)

    User (Old forums)
    Member
    Post count: 23064

    For the following questions let’s say we have the following structure :

    D:\doc and set\matt
    D:\doc and set\matt\Folder 1
    D:\doc and set\matt\Folder 2
    D:\doc and set\matt\Folder 3

    You can do something like this :

    DiskFolder folder = new DiskFolder(@”d:\doc and set\matt”);
    DiskFile diskFile = new DiskFile(@”d:\testfilter.zip”);
    ZippedFolder zippedF = new ZippedFolder(diskFile,@”\doc and set\matt”);
    folder.CopyFilesTo(zipEvents,””,zippedF,true,true,filter);

    This will preserve the “\doc and set\matt

    Imported from legacy forums. Posted by Matt (had 2915 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.