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?

3
  • How did you establish that it is skipping the files? Apr 24, 2012 at 14:18
  • @DavidSchwartz: it says "49 SKIPPED." I know, it is bizarre. Apr 24, 2012 at 16:22
  • you have a space between /xf: and web.config. typo ? Apr 24, 2012 at 17:06

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .