I want to zip a set of files in a folder, however not all the files. I have the list of files captured in both a String Array and a Datatable. Does anyone know if its possible to utilise either of these data sources to indicate which files are to be included in the ZIP file.
You can custom-create a folder for the purpose of zipping and you can iterate through the array that you have. In the loop, move each file to the above-specified folder & compress the folder altogether. Thus you have a compressed folder with the specified files now.
Hope this helps,
Couldn’t find it documented anywhere, but this seems to work:
Here “files” is an IEnumerable (array, list, …) of file paths.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.