compression - Compressing Files With C# By Winrar -
i never done develping simple application , need help.
the scenario have excel files name coded, need first 5 letters of each files , compress together. ex.
marks marks 2 marks 3
these compress.
is method , zip winrar.
thanks
i agree ioniczip (now dotnetzip) good. here sample of want do
string somepath = "d:\\excelfiles"; string zippath = "d:\\excelfiles\\some.zip"; string[] filenames = system.io.directory.getfiles(somepath, "mark*.xlsx", searchoption.alldirectories); using (zipfile zip = new zipfile()) { foreach (string filename in filenames) { zipentry e = zip.addfile(filename, ""); } zip.save(zippath); }
Comments
Post a Comment