DOS script to copy files based on time

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
robfoster2000
Posts: 1
Joined: 08 Nov 2011 03:04

DOS script to copy files based on time

#1 Post by robfoster2000 » 08 Nov 2011 03:38

Hi All.

New to this forum so be gentle!

I'm not sure if this can be done, but I want to write a script that connects to a server and copies only files that are newer than a specified time. I know that xcopy can take a specified date, but the server I am connecting to has files placed every hour - when I connect I only want to get the files dropped in the last hour.

Does anyone know how to achieve this? From what I can tell, the limitations may be only to date rather than time, but perhaps someone has a cunning trick?

Thanks in advance..
Rob.

Post Reply