Results 1 to 3 of 3

Thread: How to create a backup program?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    84

    Question

    Hi!

    I want to make a backup program which loops through all the directories and files on a drive of my computer and checks if the current directory or file exists on another specified drive. If not, it creates the directory or copies the missing files. If a newer version of a file exists it would be updated.
    I'm not asking you for a fully coded solution, however I would greatly appreciate if someone could point me in the right direction.
    Thanks in advance,
    Nina.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Use the FileSystemObject it's probably the easiest way for a VB developer to go thrugh the directory tree.
    To check if a file has been altered you could do what most backup programs do, check the Archive attribute of the file.
    You can do that with the Attributes property of the FileSystemObject. If the attribute is set then copy the file and then remove the attribute.

    Good luck!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    84
    Well, my program seems to work now ...

    however, I was wondering if anyone of you could take a look at my code, give me some comments on it or suggestions, how to make it faster.

    If you'd like to, send me an email to [email protected] or post you email address here, so I could send it to you.
    Thanx a lot,
    Nina

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width