0

I am trying to copy files for backup before moving them into a directory to be picked up. However, this is failing due to the

Does C:\USERS\ALLID\DESKTOP\batchtesting2\testing.txt specify a file name or directory name on the target (F = file, D = directory)?

here is my command line:

XCOPY "c:\USERS\me\DESKTOP\batchtesting\testing.txt" "c:\USERS\me\DESKTOP\batchtesting2\testing.txt" /i /e

However, the /i isn't working to avoid the prompt.

Squashman
  • 13,649
  • 5
  • 27
  • 36
AlliDeacon
  • 1,365
  • 3
  • 21
  • 35
  • 1
    You don't need to specify the file name in the target. `XCOPY "c:\USERS\me\DESKTOP\batchtesting\testing.txt" "c:\USERS\me\DESKTOP\batchtesting2\" /i /e` – Squashman Nov 09 '18 at 00:06
  • 1
    As @Squashman says, leaving off the filename in the destination solves the issue, but usually requires you to include a final backslash, as the sample provided shows. – Ken White Nov 09 '18 at 00:34

0 Answers0