×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
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

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

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


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

(OP)
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.

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

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close