Comment de-zipper un fichier dans un répertoire en c#

static00065 -  
 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);
A voir également:

1 réponse

Utilisateur anonyme
 
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?
0