Page 1 of 1

XCOPY files with "&" in the name

Posted: 17 Sep 2009 06:57
by OU_GUY
Hello,

I want to copy a folders content into another folder, but some of the files have an "&" in the name and are not carried over.

Any ideas?

Code: Select all

xcopy "P:\Test" "\\test\test\Data Feeds" /-Y
pause

Re: XCOPY files with "&" in the name

Posted: 21 Sep 2009 15:33
by GeekyGuyJax
OU_GUY wrote:Hello,

I want to copy a folders content into another folder, but some of the files have an "&" in the name and are not carried over.

Any ideas?

Code: Select all

xcopy "P:\Test" "\\test\test\Data Feeds" /-Y
pause


Try this:
"P:\Test\*.*" "\P:\test\test\Data Feeds" /S /Q /Y /C

GeekyGuyJax

Re: XCOPY files with "&" in the name

Posted: 21 Sep 2009 15:39
by GeekyGuyJax
GeekyGuyJax wrote:
OU_GUY wrote:Hello,

I want to copy a folders content into another folder, but some of the files have an "&" in the name and are not carried over.

Any ideas?

Code: Select all

xcopy "P:\Test" "\\test\test\Data Feeds" /-Y
pause


Try this:
"P:\Test\*.*" "P:\test\test\Data Feeds" /S /Q /Y /C

GeekyGuyJax