# Network share timeout

**URL:** https://www.finalbuilder.com/forums/t/network-share-timeout/1506
**Category:** Discussion
**Created:** [June 21, 2010, 3:56am UTC](https://www.finalbuilder.com/forums/t/network-share-timeout/1506 "2010-06-21T03:56:26Z")
**Posts on this page:** 3
**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: [June 21, 2010, 3:56am UTC](https://www.finalbuilder.com/forums/t/network-share-timeout/1506/1 "2010-06-21T03:56:26Z")

</div>

&nbsp;Hello

I'm having a few problems copying a built solution over to an off-site production server. The file in question is a zip file around 15mb. I'm using the built-in Copy Files action to copy the zip to a specified network share. Sometimes it works fine and only takes a minute or so, other times I receive this error:

**Failed to copy file MySourceFile -\> MyDestinationFile**

**Win32 error: The specified network name is no longer available**

Any ideas? I've tried mapping a drive through Windows and using the drive letter rather than the network share address, although I could try mapping it as a Finalbuilder action. If I run the build script interactively it doesn't fail, the network share is kept active.

&nbsp;

Any help is appreciated - thanks.

&nbsp;

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [June 21, 2010, 10:58am UTC](https://www.finalbuilder.com/forums/t/network-share-timeout/1506/2 "2010-06-21T10:58:52Z")

</div>

Hi James,   
  
 Try using the Robocopy or XCopy actions to copy the files over as they should be more reliable.   
  
 Regards,   
 Paul.

---

<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: [June 22, 2010, 9:38am UTC](https://www.finalbuilder.com/forums/t/network-share-timeout/1506/3 "2010-06-22T09:38:20Z")

</div>

&nbsp;Thanks, Xcopy seems to work using the built-in action.

&nbsp;

The generated command line for anyone stuck is something like **xcopy source-folder destination-folder\ /Y /I**

This copies the contents of the source folder into the destination folder, overwriting any matching files.

&nbsp;

Thanks&nbsp;
