Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# create a zip files

	/// <summary>
      /// Create a zip file
      /// </summary>
      /// <param name="zipPath">Path of the files</param>
      /// <param name="destinationPath">Distination Path</param>
      /// <param name="zipFileName">Filename of the zip files</param>
        
        public static void ZipFiles(string zipPath, string destinationPath, string zipFileName)
        {
            try
            {
                System.IO.Compression.ZipFile.CreateFromDirectory(zipPath, destinationPath + zipFileName);
                
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
 
PREVIOUS NEXT
Tagged: #create #zip #files
ADD COMMENT
Topic
Name
5+4 =