Results 1 to 8 of 8

Thread: Folder Sync

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    5

    Folder Sync

    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 ?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Folder Sync

    Welcome to the Forums.

    What language are you wanting to write this in?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    5

    Re: Folder Sync

    Hi,
    Thanks for your reply.

    I will be using Visual Basic 6

    Thanks

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Folder Sync

    Quote Originally Posted by Beer Can
    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 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!

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    5

    Re: Folder Sync

    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 !

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Folder Sync

    My friend uses Total Commander for backups, from one machine to another. It copies only changed files.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    5

    Re: Folder Sync

    But does it delete old files?

  8. #8

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    5

    Re: Folder Sync

    This program does just what I need,

    replicator

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

    Anyone help ?

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