How to overwrite existing files in batch?

Mal picture Mal · Oct 29, 2010 · Viewed 382.7k times · Source

The following command copies and moves a file but I also need it to overwrite the file it's replacing.

xcopy /s c:\mmyinbox\test.doc C:\myoutbox

Answer

Eugene Mayevski 'Callback picture Eugene Mayevski 'Callback · Oct 29, 2010

Add /Y to the command line