Copy files that arrive in one folder with newer Date Mod.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Bigmac001
Posts: 1
Joined: 19 Sep 2015 18:13

Copy files that arrive in one folder with newer Date Mod.

#1 Post by Bigmac001 » 19 Sep 2015 18:52

Hi, I'm new to this forum, hopefully someone can help me. I have a Server operating with Windows 2008, and what I'd like to do is to copy files from one folder (A) to another that folder (B), which has only one file existing in it at the moment. I only want to copy files which have a newer Date Modified to the one file existing in folder (B). Does anyone have any ideas on how this can be done in a batch form?

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Copy files that arrive in one folder with newer Date Mod

#2 Post by Squashman » 19 Sep 2015 19:54

You can use the XCOPY command with the /D option.

Post Reply