Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identify if ZIP File is Corrupted
Message
De
24/04/2013 15:02:33
 
 
À
24/04/2013 14:55:34
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01571775
Message ID:
01571780
Vues:
85
This message has been marked as the solution to the initial question of the thread.
>>>Hi,
>>>
>>>How can I to identify if ZIP file is corrupted, through VFP?
>>>Thanks in Advance!
>>
>>
>>I have done this a few ways. The most straight-forward is to use a utility like 7za.exe (a stand-alone version of 7-zip) to test the archive and parse the output looking for its error message.
>
>Rick,
>
>Thanks!
>Is there some trick to do this with PKZ.exe utility?


No trick. But PKUNZIP won't work on 64-bit computers. To get the archive utility's output, just pipe the result using (the greater than sign) to a file which you can parse afterward:
! PKUNZIP -t myfile.zip > output.txt
! 7za t myfile.zip > output.txt
Then use:
lcResult = FILETOSTR("output.txt")
afterward, and look for the error notification. You can find an error by creating a false archive and testing it.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform