dcsimg
Results 1 to 5 of 5

Thread: Use filesys to copy files that don't exist??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2010
    Location
    Far East
    Posts
    165

    Use filesys to copy files that don't exist??

    Gurus

    I want to copy files from 1st folder to 2nd folder if file in 1st is not in 2nd. That's easy i am sure for you gurus.

    So please help

  2. #2
    Frenzied Member ChrisE's Avatar
    Join Date
    Jun 2017
    Location
    Frankfurt
    Posts
    1,274

    Re: Use filesys to copy files that don't exist??

    Hi,

    did you look first ?
    the answer is in some of your words in the Title like
    "copy" or swap the a bit " FileCopy"

    what have you tried sofar

    regards
    Chris
    to hunt a species to extinction is not logical !
    since 2010 the number of Tigers are rising again in 2016 - 3900 were counted. with Baby Callas it's 3901, my wife and I had 2-3 months the privilege of raising a Baby Tiger.

  3. #3
    Junior Member Johannah's Avatar
    Join Date
    Oct 2017
    Location
    Cologne
    Posts
    15

    Re: Use filesys to copy files that don't exist??

    I thought filesys is some kind of program lol
    But I still don't understand if file 1st doesn't exist in 2nd then copy it?!
    "The science of today is the technology of tomorrow" - Edward Teller

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2010
    Location
    Far East
    Posts
    165

    Re: Use filesys to copy files that don't exist??

    guys Confusion sorry

    I mean FS = CreateObject("Scripting.FileSystemObject") then loop to do FS.COPYFILE if file.name not in 2nd folder. Does this make sense ??

  5. #5
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    6,520

    Re: Use filesys to copy files that don't exist??

    Oh I understand perfectly. You have two folders. You want to copy any file that is in the first folder, but not already in the second folder, TO the second folder.

    I repeat our good friend ChrisE, "what have you tried sofar[sic]?"

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width