# CopyDirectory Problem

**URL:** <https://tech-community.robotics.abb.com/t/copydirectory-problem/1518>\
**Category:** Developer Tools\
**Created:** [November 5, 2007, 6:11pm UTC](https://tech-community.robotics.abb.com/t/copydirectory-problem/1518 "2007-11-05T18:11:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PerM](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@PerM](https://tech-community.robotics.abb.com/u/PerM)\
**Post date:** [November 5, 2007, 6:11pm UTC](https://tech-community.robotics.abb.com/t/copydirectory-problem/1518/1 "2007-11-05T18:11:48Z")

</div>

Hi,

I’m having some problem with getting the CopyDirectory method to work. Im using RAB 5.09, connected to a real controller.

Im using the RAB application to make a backup locally on the robot controller. I then intend to copy the backup directory to the PC. The code that I’m using for this first test is like below:

When I’m executing this I get an error at the “me.YprFileSystem.CopyDirectory” line. The error is like below:

I have experimented a lot with moving different parts of the path between the Remote/Local Directory setting, and the string variables PcPath and RobPath. However I do, I still get the same error.

I have tried with CopyFile also, that give me the same error.

I have also tried the “Rename” mathod, and that one I actually can get to work.

I have tried to find som clue here at the forum, and in the documentation. But without success.

Does anyone have any ideas about this?

/PerM
