Help with GetDirecotry/CopyDirectory
Options
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.4K RobotStudio
- 383 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 733 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings