Tag Info

New answers tagged

0

I realize that this is an older thread, but note that this can also be accomplished using the exit code returned by robocopy to determine whether any changes exist (a value of 0 indicates no changes). There are 2 ways to do this: Run your robocopy statement above, and then in the next line, check the value of $LastExitCode. Use Start-Process: ...


2

You likely have an old version in a directory listed in your path before C:\Windows\System32\ which is where robocopy is normally located. To find out where your copy is running from run where robocopy. On a regular system the result would be: C:\>where robocopy C:\Windows\System32\Robocopy.exe C:\Program Files (x86)\Windows Resource ...


2

Nothing beats a readthrough of the Robocopy documentation. To cover all your objectives using Robocopy I am fairly certain you would need to stage the files in some way first. Such as identifying files which should not be overwritten and being creative in either setting/unsetting some attribute, or appending/prepending a string to the filename, either of ...



Top 50 recent answers are included