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
If the copy command is run from within a batch job you do not need to use the /Y switch: it will overwrite existing files.