![RobotStudio event](https://new.abb.com/images/librariesprovider89/default-album/robotstudio-webinar-arc-welding.jpg)
Help with GetDirecotry/CopyDirectory
![Bpena](https://us.v-cdn.net/5020483/uploads/userpics/523/nICIEQCL92L23.jpg)
Bpena
✭
I am simply trying to copy a directory from a robot controller on the network to the local hard drive but i keep receiving this error:
System.InvalidOperationException: 'Operation is not valid due to the current state of the object.'
Here is my code:
System.InvalidOperationException: 'Operation is not valid due to the current state of the object.'
Here is my code:
private void SycnButton_Click(object sender, EventArgs e)
{
string controllerid;
string localpath;
string remoteDir = aController.FileSystem.RemoteDirectory;
localpath = @C:\Users\ + Environment.UserName + @\Documents\RobotStudio\Temp\;
controllerid = aController.SystemName;
aController.FileSystem.GetDirectory(remoteDir, localpath);
}
Can someone please point me in the right direction, thank you in advanced!
Can someone please point me in the right direction, thank you in advanced!
0
Answers
-
I'm experiencing the same issue, did you have any luck in resolving this?0
Categories
- All Categories
- 5.5K RobotStudio
- 397 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 319 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 804 RAPID Programming
- 4 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings