Loading ...
Sorry, an error occurred while loading the content.

8812Re: [NTO] Xcopy switches for file exclusion

Expand Messages
  • Mike Breiding - Morgantown WV
    Jul 11, 2010
      > Mike,
      >
      > Are you doing this thru NoteTab or from a 'Dos window'?
      >
      > I assume this is your dos prompt; C:\wamp\www\current\mich-ont>
      >
      > the source folder is; c:\wamp\www\current\mich-ont
      >
      > and destination folder is; c:\mich

      Yes, that is correct.
      > -----------------------
      > /S & /E are opposing parameters, try to lose one of them.
      > Try /Q /Y /D /S /T /EXCLUDE:.JPG
      > xcopy c:\wamp\www\current\mich-ont c:\mich /Q /Y /D /S /T /EXCLUDE:.JPG
      > or /Q /Y /D /E /T /EXCLUDE:.JPG
      > xcopy c:\wamp\www\current\mich-ont c:\mich /Q /Y /D /E /T /EXCLUDE:.JPG

      I changed the DOS window to the root and tried again.
      Here are the results:
      -----------
      C:\>xcopy c:\wamp\www\current\mich-ont c:\mich /Q /Y /D /S /T /EXCLUDE:.JPG
      Can't read file: .JPG

      C:\>xcopy c:\wamp\www\current\mich-ont c:\mich /Q /Y /D /S /T /EXCLUDE:.jpg
      Can't read file: .jpg

      C:\>xcopy c:\wamp\www\current\mich-ont c:\mich /Q /Y /D /S /T /EXCLUDE:*.jpg
      Can't read file: .jpg

      C:\>
      -----------
      Thanks,
      -Mike
    • Show all 24 messages in this topic