title: How can I copy only files and folder created in the past hour in one directory to a new directory?
body: <p>Sorry, I have very little programming experience, but I'll try my best to make this make sense.</p>
  
  <p>Basically, I want to create a program (a batch file possibly?) that runs every hour that deletes everything in the target directory, then copies any files or folders created in the past hour in the source directory to the target directory. Files and folders in the source directory should be unaffected. The deleting and copy functions could be two separate programs, if that makes things easier. They would just have to run in that order.</p>
  
  <p>I've looked into a lot of different solutions, like Robocopy and xcopy, but I haven't been able to figure out how to make use of the /xo command in Robocopy without having anything in the target directory, and xcopy just doesn't seem to be able to accept this level of specificity.</p>