0 votes
by (140 points)

Dear Rebex I want to zip a complete drive. In my case it is a USB pen drive. When I try to do this I receive a error.

It is the same when I try to use your example WinFormZip_VB

I receive error at this line: New FileSet(folderBrowserDialog.SelectedPath) Invalid path "h:\"

How can I solve this problem?

Thank you in advance


Applies to: Rebex ZIP

1 Answer

0 votes
by (70.2k points)

This is a bug in the FileSet class. It will be fixed in the next release.

To workaround this bug in the meanwhile, please use the Add(string) method instead of the Add(FileSet) method.

E.g. like this:

Using archive As New ZipArchive(path)
End Using

UPDATE The fix is part of Release 2012 R1.