views:

19

answers:

2

hello,

i got the following batch to copy and move but i also need it to over write the file its replacing how do i do that though?

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

Add /Y to the command line

Eugene Mayevski 'EldoS Corp
xcopy /s/y c:\mmyinbox\test.doc C:\myoutbox ???
Mal
A: 

You can use :

copy /b/v/y
Benoit
im new to batch whats b/v/y stand for?
Mal
use `copy /?` to have help! `/b` means binary file, `/v` means check, `/y` is force. http://www.ss64.com is a very good reference otherwise.
Benoit
sorry i just realised i have spaces in my foldernames i ussually use underscores, How is this handld properly?
Mal
enclose your arguments inside `"`'s. If you have a `"` inside an argument which is enclosed (which is never the case for filenames) double it.
Benoit
thanks for the link
Mal