Page 1 of 1

DOS script to copy files based on time

Posted: 08 Nov 2011 03:38
by robfoster2000
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.