XCOPY files with "&" in the name

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
OU_GUY
Posts: 1
Joined: 17 Sep 2009 06:51

XCOPY files with "&" in the name

#1 Post by OU_GUY » 17 Sep 2009 06:57

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

GeekyGuyJax
Posts: 4
Joined: 21 Sep 2009 14:56

Re: XCOPY files with "&" in the name

#2 Post by GeekyGuyJax » 21 Sep 2009 15:33

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

GeekyGuyJax
Posts: 4
Joined: 21 Sep 2009 14:56

Re: XCOPY files with "&" in the name

#3 Post by GeekyGuyJax » 21 Sep 2009 15:39

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

Post Reply