FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
unzip GZ Files?
unzip GZ Files?
Débuté par Thomas Fidehli, 27 juin 2018 18:35 - 1 réponse
Connectez-vous…
Thomas Fidehli
#1
Posté le 27 juin 2018 - 18:35
Hi all,
i try to extract a *.gz file (help says: only support for *.tgz, *.tar, *.tar.gz...) but i keep the same error on all 4 variations.
With a *.zip it works like expected with the following code:
(AFile is the fullpath to the file)
n
Err
=
zipOpen
(
"MyArchive"
,
AFile
)
IF
n
Err
=
0
THEN
n
Err
=
zipExtractAll
(
"MyArchive"
,
fExtractPath
(
AFile
,
fDrive
+
fDirectory
)
)
END
IF
n
Err
>
0
THEN
Error
(
"Error unzipping file."
,
zipMsgError
(
n
Err
)
)
END
zipClose
(
"MyArchive"
)
Do i miss something or have i use a external tool for that? I really need the *.gz one...
Best regards,
Thomas
Signaler
0
0
Joey Dieleman
#2
Membre enregistré
28 messages
Popularité : +2 (2 votes)
Posté le 09 juillet 2018 - 12:29
Found in a forum:
"I think in the old package repo days, .tgz was used because files on Dos floppies could only have three letter extensions. When this limitation was removed .tar.gz was used to be more verbose by showing both the archive type (tar) and zipper (gzip).
They are identical"
So I should try to rename the to extract file from extension .gz to .tgz and try to unzip it.
Regards,
Joey
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte