Results 1 to 7 of 7

Thread: Backup to Pen Drive and vice versa

  1. #1

    Thread Starter
    Fanatic Member Ggalla1779's Avatar
    Join Date
    Feb 2006
    Location
    Glasgow
    Posts
    532

    Backup to Pen Drive and vice versa

    Hi all

    Recently I almost got burned by my laptop hard drive acting up... this gave me an idea about work backup.

    How would I copy a hard drive folder say _Work to a USB pen drive.....or copy only what had changed? Suppose I could use date created?

    Not sure how I would detect a pen drive that had just been plugged in though

    Any thoughts??

    George

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Backup to Pen Drive and vice versa

    make a .rar each day and copy to several disks or use visual source safe.
    "The dark side clouds everything. Impossible to see the future is."

  3. #3

    Thread Starter
    Fanatic Member Ggalla1779's Avatar
    Join Date
    Feb 2006
    Location
    Glasgow
    Posts
    532

    Re: Backup to Pen Drive and vice versa

    i would like to automate it....every time I plug in pendrive it backs up adat in that folder where it can..... and same when I go home to main dev machine.... so I would have backup in synch

    ie no thought required!!!

  4. #4
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: Backup to Pen Drive and vice versa

    Every minute or so check if a new drive being added , your pen drive.
    "The dark side clouds everything. Impossible to see the future is."

  5. #5

    Thread Starter
    Fanatic Member Ggalla1779's Avatar
    Join Date
    Feb 2006
    Location
    Glasgow
    Posts
    532

    Re: Backup to Pen Drive and vice versa

    how do I do that ?? The copying I think I have covered

  6. #6
    Hyperactive Member ProphetBeal's Avatar
    Join Date
    Aug 2006
    Location
    New York
    Posts
    424

    Re: Backup to Pen Drive and vice versa

    Quote Originally Posted by Ggalla1779
    i would like to automate it....every time I plug in pendrive it backs up adat in that folder where it can..... and same when I go home to main dev machine.... so I would have backup in synch

    ie no thought required!!!
    You can use the code that i provided

    http://www.vbforums.com/showthread.php?t=450239

    and to automate it well off the top of my head i would say that your app would need to reside on the pen drive and have it set to autoplay when the device is plugged in. The only other thing you would need is a way for the app to determine which machine its running again (IE by using the machine name)

    Helpful Links:
    VB 6 - How to get the "Key" Value in a collection
    VB.NET - File Search Utility || VB.NET - How to compare 2 directories || VB.NET - How to trust a network share
    VB.NET - Create Excel Spreadsheet From Array || VB.NET - Example Code & Hints you may not know
    VB.NET - Save JPEG with a certain quality (image compression) || VB.NET - DragDrop Files, Emails, and Email Attachments

    Please post some of the code you need help with (it makes it easier to help you)
    If your problem has been solved then please mark the thread [RESOLVED].
    Don't forget to Rate this post

    "Pinky, you give a whole new meaning to the phrase, 'counter-intelligence'."-The Brain-

  7. #7

    Thread Starter
    Fanatic Member Ggalla1779's Avatar
    Join Date
    Feb 2006
    Location
    Glasgow
    Posts
    532

    Re: Backup to Pen Drive and vice versa

    thats clever you turned problem on its head...I didnt think to put the app on the pen drive

    Will give it a bash

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