How to prevent XCOPY from asking whether target is F(ile) or D(irectory)?
<p>In Windows 10, i am trying to do copy, paste and overwrite without getting asked to re-enter anything manually, because its a batch automated task.</p>

<p>but whenever i execute the command it keep asking me to input manually F or D.</p>

<p>How can i by default tell the xcopy do not ask do overwrite + its not F its D?</p>

<pre><code>windows10&gt; xcopy C:\from_backup C:\to_destination /s /e /h /y

Does C:\to_destination specify a file name or directory name 
on the target
(F = file, D = directory)? 
</code></pre>

<p>Cursor is blinking in to type manually D or F and never automatically taking the default D input here.</p>