Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Knowing success with WZUnzip.exe
Message
De
03/08/2011 15:29:20
 
 
À
03/08/2011 15:21:53
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01520097
Message ID:
01520102
Vues:
34
>The only approach I could find of is to filter for specific string in the output result. If the file is not a .zip compliant file, I may get something like this:
>
>"End-of-central-directory signature not found."
>
>So, if the output includes this, I know it failed. There could be various variations of such message. For now, I will add them up as I find them. If someone has a better idea, let me know.

Sometimes, ZIP utilities have a command that just checks the integrity of the archive, without actually unZIPping its contents.

If you are unZIPping to an empty directory, you could see if any files got created. Or, if you know the name of a file that's supposed to be present in the output, or a pattern like YYYY-MM-DD.TXT you could search for that.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform