Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11207
  • Last Modified:

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
0
dlapid
Asked:
dlapid
  • 4
1 Solution
 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now