Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
CopyDirectory Problem
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
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings