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?

link|improve this question
feedback

2 Answers

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.

link|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
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.