Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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