• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help with XCOPY

TwinCams

Newbie
So i'm trying to create a batch file to automatically copy files from one folder to the other, however I can't seem to get it to automatically copy when there's anything NEW in the source folder???

This is what I have thus far:

xcopy /s C:\LinsReports Y:\ScheduledReports /I

While this works....It does not continually or automatically update the destination folder as new reports are generated in the source folder: LinsReports ??

And should this batch file be placed in the startup folder? This is a W2K3 server.

Can someone assist with this? Thanks!!!
 
i would put in the scheduled task. why would u put it in the startup folder? if u did that it would only run when the server is restarted which u shouldnt be restarting that often imo
 
Yup, adding the /d switch might help as that copies only files with a newer timestamp. But run it in task scheduler.

You could look into using xxcopy or robocopy if you want to make your process more streamlined and delete files after copying.
 
Back
Top Bottom