3

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?

MDMarra
  • 100,734
  • 32
  • 197
  • 329
Code Silverback
  • 253
  • 1
  • 2
  • 8

1 Answers1

0

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
Flash
  • 1,310
  • 7
  • 13