# Quick question on Copy file action

**URL:** https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230
**Category:** Discussion
**Created:** [October 18, 2006, 11:06am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230 "2006-10-18T11:06:31Z")
**Posts on this page:** 9
**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 18, 2006, 11:06am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/1 "2006-10-18T11:06:31Z")

</div>

I'm trying to copy files across server, but the problem is the server names are almost the same, the different char is on ninth place. So, copy file action won't work. Which action I should use?  
Thanks a lot 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 18, 2006, 11:13am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/2 "2006-10-18T11:13:33Z")

</div>

Dos copy command only recognize till the eighth char of the name, right? Thanks!

---

<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, 11:37am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/3 "2006-10-18T11:37:01Z")

</div>

Robocopy works great, both locally and over the network.  
  
[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, 11:48am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/4 "2006-10-18T11:48:01Z")

</div>

How to make it only copy all the files in the directory without the subdirectories by using robocopy?  
Thanks!

---

<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, 11:51am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/5 "2006-10-18T11:51:19Z")

</div>

I tried with _._ for source path at the end, but got "Invalid Parameter: “source path\*.\*”

---

<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 19, 2006, 1:18am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/6 "2006-10-19T01:18:32Z")

</div>

I tried it with robocopy, it couldn’t distinguish either if the first 8 chars are the same for the server names. Also, I still don’t know how to only copy files in the directory which contents subdirectory by using robocopy action. Any suggestions? I appreciate it!

---

<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 19, 2006, 2:16am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/7 "2006-10-19T02:16:19Z")

</div>

Hi There,  
Here’s the latest update. I put “/lev:1” in Extra Command Line Options text box. Then, it resolved copy files only issue.  
But, the server name issue still exists. I used DOS command line to do the robocopy is fine, even the first 8 chars are the same for the server names. But it doesn’t work for Robocopy action in FB4. Please advise! Thanks a lot!

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [October 19, 2006, 5:23am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/8 "2006-10-19T05:23:41Z")

</div>

Posted By Eric Lee on 18 Oct 2006 4:06 PM  

the problem is the server names are almost the same, the different char is on ninth place.

Hi Eric,  
  
If it's just the server names which are different, one solution may be to use the "Map Network Drive" action to map each of the servers as a drive letter (ie \\ServerAB1 becomes Y:).  
  
However, it's still very odd if Robocopy works from the DOS command prompt and not from inside FinalBuilder. Is the command line you used the same as the command line shown in the "Using command line" log output from Robocopy?

---

<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 19, 2006, 7:59am UTC](https://www.finalbuilder.com/forums/t/quick-question-on-copy-file-action/230/9 "2006-10-19T07:59:01Z")

</div>

Thanks a lot for the advice. You are right. If robocopy command line is ok, then robocopy action shoule be ok as well. It turned to be windows authorization problem. Thanks again for your help.
