PDA

Click to See Complete Forum and Search --> : Folder Sync


Beer Can
Jan 11th, 2006, 06:54 PM
Hi
I am quite new at this, Just wondering if anyone has any code or knows of any that can do the following for me?.

I have two folders, 1 on a laptop and one on a USB stick. I need a simple program with a command button that will make the folder on the USB stick so it is exactly the same as one on my laptop, ie, copy new files and delete old files.

Any help would be much appreciated.
please ?

RobDog888
Jan 11th, 2006, 07:42 PM
Welcome to the Forums.

What language are you wanting to write this in?

Beer Can
Jan 12th, 2006, 12:21 PM
Hi,
Thanks for your reply.

I will be using Visual Basic 6

Thanks

Hack
Jan 12th, 2006, 12:27 PM
I have two folders, 1 on a laptop and one on a USB stick. I need a simple program with a command button that will make the folder on the USB stick so it is exactly the same as one on my laptop, ie, copy new files and delete old files. The simplest method would be to delete the folder on your stick, and just copy the folder from your laptop on over to it whenever necessary. In Post #2 of this (http://www.vbforums.com/showthread.php?s=&threadid=140954) thread there is a very neat example of how to copy a folder. I've used this a number of times.

BTW: Love your user Id and the product it represents! :D

Beer Can
Jan 12th, 2006, 12:43 PM
Hi Hack

Thanks for your reply.

I already have a program that simply copies the folders, but the size of the folder is more that 5Gb.
When doing more than 1 laptop it can be quite time consuming deleting the entire folder and than copying it back again, especially as there is usually very little change,

I just need a simple piece of code that what will look at the source folder and the destination folder, copy any new files and delete any old files from the destination that are no longer in the host.

Cheers !

dglienna
Jan 13th, 2006, 01:23 PM
My friend uses Total Commander for backups, from one machine to another. It copies only changed files.

Beer Can
Jan 13th, 2006, 01:35 PM
But does it delete old files?

Beer Can
Jan 15th, 2006, 04:10 PM
This program does just what I need,

replicator (http://www.karenware.com/powertools/ptreplicator.asp)

But I need a far simpler one with no options of selecting folders. - just a single command button and a progress bar

Anyone help ?