Search
 
SCRIPT & CODE EXAMPLE
 

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);
            }
        }
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity create a child object 
Csharp :: unity getcomponent not working on ui 
Csharp :: linq distinct count 
Csharp :: how to deselect a button through code unity 
Csharp :: triangle minimum path sum c# 
Csharp :: c# datagridview search filter 
Csharp :: .net Core Get File Request 
Csharp :: crop bitmap image c# 
Csharp :: c# remove special characters from string 
Csharp :: how to split concat string c# 
Csharp :: c# run loop x times 
Csharp :: how to say hello world in c# 
Csharp :: onkeypressed unity 
Csharp :: Unity Rigidbody how to set zero momentum 
Csharp :: razor confirm password validation 
Csharp :: C# Program For Check Total Occurrence Of A Number In An Array 
Csharp :: c# unity get name of object 
Csharp :: how to set unique constraint from EF core 
Csharp :: get any random item in array c# 
Csharp :: get client ip address c# 
Csharp :: What is the difference between String and string in C#? 
Csharp :: c# create list with range 
Csharp :: unity post processing ui 2d 
Csharp :: how add text to element in javascript 
Csharp :: how to pass string value to enum in c# 
Csharp :: callback function on animation end unity 
Csharp :: c# how to fill a datatable 
Csharp :: unity button press 
Csharp :: unity audio manager 
Csharp :: c# parse string to xml 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =