Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So here's my script:

robocopy  X:\WebApplications\Harrier\Stage X:\WebApplications\Harrier\production /is /e   /xf: web.config
robocopy  X:\WebApplications\Osprey\Stage X:\WebApplications\Osprey\production /is /e /xf: web.config

One would expect that every file in stage would be copied to production, including files that appear to be the same, but excluding the web.config.

This script will happily skip files it deems to be the same, ignoring the /is argument. What am I doing wrong?

share|improve this question
    
How did you establish that it is skipping the files? –  David Schwartz Apr 24 '12 at 14:18
4  
+1 for the Y U NO. –  Tom O'Connor Apr 24 '12 at 15:32
    
@DavidSchwartz: it says "49 SKIPPED." I know, it is bizarre. –  Code Silverback Apr 24 '12 at 16:22
    
you have a space between /xf: and web.config. typo ? –  Mathieu Chateau Apr 24 '12 at 17:06
add comment

1 Answer

Testing this myself, it actually copies the file. but it does go VERY fast.

comparing the output of the command with the /is switch and without the following shows in the summary (dutch version of windows):

With the switch:

              TotaalGekopieerdOvergeslagenNiet gelijk   Mislukt   Extra's
   Mappen:         2         0         2         0         0         0
Bestanden:       111       111         0         0         0         0
    Bytes:   27.39 m   27.39 m         0         0         0         0
   Aantal:   0:00:00   0:00:00                       0:00:00   0:00:00

Without the switch:

              TotaalGekopieerdOvergeslagenNiet gelijk   Mislukt   Extra's
   Mappen:         2         0         2         0         0         0
Bestanden:       111         0       111         0         0         0
    Bytes:   27.39 m         0   27.39 m         0         0         0
   Aantal:   0:00:00   0:00:00                       0:00:00   0:00:00
share|improve this answer
add comment

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.