Home Forums .NET libraries Xceed Zip & Real-Time Zip for .NET Zip A Folder Containing Sub Folders

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

    Hi every one..

    i am new to Xceed componenets . i am trying to zip a folder which contains sub folders and files . i tried and search the xceed forums but didnt got any solution or example . Answer with an example will be very appreciated ..

    Thanks in advanse 

    Imported from legacy forums. Posted by Muhammad (had 2275 views)

    Xceed Support
    Post count: 5658

    Hi Muhammad,

    You could use the CopyToFiles method of the DiskFolder class with the recursive parameter set to true as follow:

    using Xceed.Zip;

    using Xceed.FileSystem;


    DiskFolder diskFolder = new DiskFolder( @”c:\temp” );

    diskFolder.CopyFilesTo( new ZipArchive( new DiskFile( @”c:\test.zip” ) ), true, true );


    the information and code snippet was taken from the online documentation at the page http://doc.xceedsoft.com/products/Xceedfilesystem/Copying_items_to_a_zipped_folder.html.



    Imported from legacy forums. Posted by Mohamed [Xceed] (had 1898 views)

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