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
you need to simply add /Y
xcopy /s c:\mmyinbox\test.doc C:\myoutbox /Y
and if you're using path with spaces, try this
xcopy /s "c:\mmyinbox\test.doc" "C:\myoutbox" /Y