Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Xcopy Exclude  (Read 6911 times)

0 Members and 1 Guest are viewing this topic.

JIB

    Topic Starter


    Newbie

    Xcopy Exclude
    « on: February 04, 2009, 08:21:18 AM »
    Need help on syntax for Xcopy Exclude 
    This works fine:
    Xcopy /S /I /C /D /H /Y "C:\Documents and Settings" "F:\Documents and Settings"
    But this doesn't:
    Xcopy /S /I /C /D /H /Y "C:\Documents and Settings" "F:\Documents and Settings" /Exclude:"New York Times"   I get "Can't read file "New York Times"
    Nor does this:
    Xcopy /S /I /C /D /H /Y "C:\Documents and Settings" "F:\Documents and Settings" /Exclude:"\New York Times\"   I get "Can't read file "\New York Times\"

    Any suggestions?  Thanks.

    JIB

      Topic Starter


      Newbie

      Re: Xcopy Exclude
      « Reply #1 on: February 04, 2009, 09:17:03 AM »
      Figured it out!  Created a file named Excludes.Txt containing, one name on each line, a list of the files and folders to be excluded.  Then used the following syntax:  Xcopy from to /Exclude:Excludes.Txt