How to suppess xcopy "... specify file name or directory ... "

Getting the following prompt on "xcopy FILE*.txt INPUT.txt /Y"

"Does INPUT.txt specify a file name
or directory name on the target
(F = file, D = directory)?"

need to suppress or take F automatically
dlapidAsked:
Who is Participating?
 
InteractiveMindCommented:
you should be able to specify F automatically, using this command instead:

  echo F | xcopy FILE*.txt INPUT.txt /Y

0
 
InteractiveMindCommented:
I'm curious however, to where these files are being copied to? .. and this is the confusion that the XCOPY app is having...
0
 
InteractiveMindCommented:
..You see, you must specify the target directory, of where to copy the files to, here's an example of syntax:

   xcopy "fileToCopy.ext" "c:\directoryToCopyTo" /Y

However, you've specified two files (or, at least, the INPUT.txt takes the form of a file).
0
 
InteractiveMindCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.