Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create XP compressed folder in VFP
Message
De
25/02/2004 19:01:29
 
 
À
24/02/2004 18:05:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00880426
Message ID:
00880954
Vues:
67
Fred,

The "compressed folder" is a standard zip file. GUI shows it as a folder, but it's a file. Your previous try to create the zip file with STRTOFILE failed because it's equivalent with "a text file is internally equivalent with a zip file", which is not true. A zip file has a specific header, where it contains the info about the contained files.

Even GUI allows you to add the files inside with drag'n'drop and/or copy/paste, this doesn't mean it does a COPY internally. According to MSDN, in the system one can find these three dll's: dunzip32.dll, dzip32.dll and zipfldr.dll. These three are doing the magic. Your copy/paste operation is a call to these dlls.

The only way to duplicate programatically the copy/paste in a compressed folder is to declare the corresponding API functions.

I have to mention I use Windows2003 Server and I can't find those dlls in my system - they were removed and/or replaced. However, the OS still allows me to create Compressed folders, so it means the functionality was moved to some other dlls. They are not documented in MSDN, so I can't help you further, but I strongly believe my presumptions are correct.

Thank you.

>Exactly! The GUI knows how to deal with it, but not the command line or internal COPY commands.
Grigore Dolghin
Class Software.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform