Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am developing a backup/restore routine for my apps. Is there a utili

Status
Not open for further replies.

vdeveloper

Programmer
Aug 5, 2000
42
IN
I am developing a backup/restore routine for my apps. Is there a utility or class library available which can incorporate Zipping/Unzipping functionality for the same?

Thanks
 
vdevelop

If you wanted to use the 32 bit command line version of PkZip, the following code is for backing up where USER.drive_lett is the Zip/CD-RW drive:-

lcTemp = ;
[/N3 ] ;
+SYS(5) ;
+SYS(2003) ;
+[\pkzip25 -add -dir=full -exclude=*.bak -temp=];
+GETENV([windir]) ;
+[\temp ] ;
+USER.drive_lett ;
+[:\data ] ;
+SYS(5) ;
+SYS(2003) ;
+[\database\*.*]

! &lcTemp

*-- The following code is for restoring where USER.drive_lett *-- is the Zip/CD-RW drive:-

lcTemp = ;
[/N3 ] ;
+SYS(5) ;
+SYS(2003) ;
+[\pkzip25 -extract -overwrite -directories ] ;
+USER.drive_lett ;
+[:\data ] ;
+SYS(5) ;
+[\]

! &lcTemp

*--
I have written a FAQ on this subject, which can find by clicking on the relevant button on this page.

You will find PkZip25 to be quicker than creating a .CAB file, but you will need licences, whereas the .CAB file version is FREE. The .CAB file will be far smaller.

Chris


 
thanks Chris.

Actually Im looking for an activex control sort of thing using which I can develop a backup/restore interface that I can be presented to the user with options for choosing drive, files etc. I have developed such a form, but I then use only a 'copy to ' command to make a copy of files in some other directory. not very elegant but workable.

 
vdevelop

Good luck with your search.

I tried the same a few months ago without success, and subsequently wrote the .ZIP and .CAB backup/restore code.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top