Hello,
I found this code on the zennoposter forum, but the problem is that it works partially or I make a mistake.
the two variables are the paths (path 2 ends with.zip)
The problem I currently have is that it does not take the folders that are present in the folder I want to zip.
Example :
folder to be zipped
inside there is:
folder1
folder2
file1.php
file2.php
only the files are zipped, and the folders are ignored.
Do you have any idea?
Thanks you
I found this code on the zennoposter forum, but the problem is that it works partially or I make a mistake.
C#:
string startPath = @project.Variables["acces_zip"].Value;
string zipPath = @project.Variables["acces_zip_2"].Value;
System.IO.Compression.ZipFile.CreateFromDirectory(startPath, zipPath);
The problem I currently have is that it does not take the folders that are present in the folder I want to zip.
Example :
folder to be zipped
inside there is:
folder1
folder2
file1.php
file2.php
only the files are zipped, and the folders are ignored.
Do you have any idea?
Thanks you