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

Fermé
static00065 - Modifié le 19 juil. 2017 à 14:22
Whismeril Messages postés 19024 Date d'inscription mardi 11 mars 2003 Statut Contributeur Dernière intervention 18 avril 2024 - 19 juil. 2017 à 19:06
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

Whismeril Messages postés 19024 Date d'inscription mardi 11 mars 2003 Statut Contributeur Dernière intervention 18 avril 2024 928
19 juil. 2017 à 19:06
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