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
Add /y to the command line of xcopy:
/y
xcopy
Example:
xcopy /y c:\mmyinbox\test.doc C:\myoutbox