By paulhenrydanna
Sep 18, 2007
  1. This is for the old timers that may have used the XCOPY command.

    Here goes.

    I have a file "BackupDataToExternalDrive.Bat". It contains one line

    XCOPY c:\Billing\ G:\Billing /Exclude:\FilesToExclude.Txt /S/V/Y

    The File "FilesToExclude.Txt" contains:


    When I run "BackupDataToExternalDrive.Bat", I get the following error:

    Can't read file "\FilesToExclude.Txt"

    I have tried various combinations of the file name from full path to only the name. I am at a loss.

    Any suggestions would be helpful.

    Thanks in advance,

  2. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    As you probably don't know, \ in front of a path means "start from the drive root". So if you specify \FilesToExclude.txt, it will look for it in C: (or whatever your current drive is). Try /exclude:FilesToExclude.Txt instead.
  3. 1bellb

    1bellb TS Enthusiast Posts: 86

Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...