Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynaZIP problem
Message
De
30/05/2001 20:44:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
DynaZIP problem
Divers
Thread ID:
00512975
Message ID:
00512975
Vues:
50
I just purchased Dynazip and am using the wrapper class by Mark from the UT download directory. I want to let the user select the destination of the backup zip file and use the following code out of a click event of a Backup command button.

lcFileDestination = getdir()
lnlength = len(lcFileDestination)

*** determine if use cancelled out of the program
If lnLength != 0
lcFileDestination = left(lcFileDestination,lnlength -1)
lcdirselected = lcfileDestination+"\"
Else
Messagebox("Destination Not Selected" ,16 ,"Warning")
return
Endif
...
oDZ = newobject('dynazip', 'dynazip.fxp')
with oDZ
.cZip_ZipFile = lcdirselected + "sob.zip"
.....
....
If I want to backup to the A: drive or the CDROM drive, the program won't create the backup unless you are directing it to a subdirectory on those two drives.

The error message is #1961 " A subdirectory or file a:\already exists" or in the case of CDROM ...file d:\already exists.

The DynaZIP program and wrapper class is exactly what I needed. I just got the both programs and with about 2 hrs work will have a solution to my backup problem. Special thanks to the excellent class and documentation by Mark McCasland.

Any work arounds or better yet what the heck am I doing wrong?

Gaylen Jungling
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform