Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm sure this must have been asked and answered before, but I just can't find it right now...
I have a Visual Studio post-build action that currently does a recursive copy (using xcopy) of an output folder to a different folder. This takes longer than I like and I'd like to only copy newly created and newer (changed) files each time (which xcopy doesn't seem to support).

I cannot depend on any not-installed-by-default tool since the solution is used by different developers on different machines.
What would a superuser do?

share|improve this question
up vote 3 down vote accepted

A superuser would use xcopy /m.

Actually, no, a superuser would use rsync. But since you can only use built-in tools, there you are.

share|improve this answer
Brilliant! I had missed the part in the docs that say it turns off the archive attribute after copying... – Niklas Jun 17 '10 at 8:53

Robocopy is ideal for this, and it's installed by default on Vista and newer. If you're on a domain, you could also push it out with gp if needed. If you're using XP, then go with xcopy, and Ignacio says.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .