# XCOPY problem

**URL:** https://www.finalbuilder.com/forums/t/xcopy-problem/225
**Category:** Discussion
**Created:** [October 13, 2006, 7:49am UTC](https://www.finalbuilder.com/forums/t/xcopy-problem/225 "2006-10-13T07:49:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 13, 2006, 7:49am UTC](https://www.finalbuilder.com/forums/t/xcopy-problem/225/1 "2006-10-13T07:49:49Z")

</div>

I’m using xcopy action with Exclude Files. File Locations are working fine with variable, like \servername%appname%\*.\*  
But, when exclude files by giving the path with variable, it seems doesn’t work for the second time.  
For example, Exclude file \servername%appname%\Backup  
Thanks for your help!

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 13, 2006, 10:43am UTC](https://www.finalbuilder.com/forums/t/xcopy-problem/225/2 "2006-10-13T10:43:56Z")

</div>

XCopy action is working fine on a Windows2000 server to copy the file remotely with another Win2k server. But, when I run my finalbuilder script on XP, it gives me an error "calling xcopy using command line: “source path” “destination path”/Y /I /EXCLUDE: C:\DOCUME~1\Temp\xcp563.tmp /S /R  
Cannot perform a cyclic copy.   
But, I specified Exclude folder mannually without putting any variables in the path. Can you plz help me on this? xcopy action is working on another server which controlled xcopy on my own desktop.   
Thanks a lot!

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 14, 2006, 2:51am UTC](https://www.finalbuilder.com/forums/t/xcopy-problem/225/3 "2006-10-14T02:51:06Z")

</div>

Hi Eric  
  
Did you try running xcopy from a dos command line, that would at least tell us if this is a FinalBuilder problem or an XCopy problem. Without seeing your source & destination paths it’s hard to figure out what the problem could be.   
  
Hmmm… a quick google on “xcopy cyclic copy” found this link "  
  
[http://www.xxcopy.com/xxcopy07.htm](http://www.xxcopy.com/xxcopy07.htm)  
  
HTH

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 17, 2006, 3:01am UTC](https://www.finalbuilder.com/forums/t/xcopy-problem/225/4 "2006-10-17T03:01:40Z")

</div>

Hi Vincent,  
I tried to use xcopy in DOS command window. It gave me different results on XP and Win2000. Win2000 works fine, but XP gave me Cannot perform a cyclic copy error. Do you know anything about it? Or, any suggestion on what I’m trying to do here? We have a dir on production server which contains the Backup folder in it. Each time we want to release something on prod., we need to copy everything under the dir except the Backup folder first. I think xcopy is the best way to do so, right? Thanks for any advice.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [October 18, 2006, 2:27am UTC](https://www.finalbuilder.com/forums/t/xcopy-problem/225/5 "2006-10-18T02:27:28Z")

</div>

Hi Eric  
  
The link I posted has some info on the cyclic issue. Another alternative might be RoboCopy, which can be downloaded from microsoft :  
  
[http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en](http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [October 18, 2006, 7:35am UTC](https://www.finalbuilder.com/forums/t/xcopy-problem/225/6 "2006-10-18T07:35:31Z")

</div>

Thank you so much, Vincent! Robocopy is working flawlessly.
