Comment de-zipper un fichier dans un répertoire en c#
static00065
-
Utilisateur anonyme -
Utilisateur anonyme -
Bonjour j'aimerais comme le dis le titre, un fichier zip
string startPath = "c:\example\start";
string zipPath = "c:\example\result.zip";
string extractPath = "c:\example\extract";
ZipFile.CreateFromDirectory(startPath, zipPath);
ZipFile.ExtractToDirectory(zipPath, extractPath);
1 réponse
-
Bonsoir
ce code est exactement celui de la doc microsoft.
https://docs.microsoft.com/en-us/dotnet/standard/io/how-to-compress-and-extract-files
On peut supposer qu'il fonctionne, quel est donc ton problème?