wildcard support?

Aug 5, 2009 at 1:02 AM

Does sevenzipsharp have the ability to use wildcards to compress files like "c:\databasefolder\*.dbf"?  I know it will do filelists and directories,However by using a wildcard 7z will keep a better structure of the path.  Any help?


Aug 6, 2009 at 6:26 AM

CompressDirectory() has 12 overloads and some of them support wildcards (as supported by DirectoryInfo.GetFiles()).

Aug 6, 2009 at 9:00 AM

Particularly, overloads with searchPattern parameter.

Aug 6, 2009 at 4:02 PM

Thanks Markhor

I will take a look

Aug 6, 2009 at 5:55 PM
Edited Aug 6, 2009 at 5:56 PM

It worked. However, when I use the line bebow to comrpress It drops the "V" from the "Vet" directory in the archive. The archive reads "C:\et"



@"c:\Vet\", @"c:\backupfiles\testbackup.7z", "vpatient.*", false);

Aug 7, 2009 at 9:56 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.