How to access hd0a file by PC applicatin
Leon_dev
✭
Hello,
I want to access (read ,write,delete) files which stored hd0a\XA1 folder via PC SDK or webservice,is it possible?Now I can only access hd0a\system\home...
Thanks.
I want to access (read ,write,delete) files which stored hd0a\XA1 folder via PC SDK or webservice,is it possible?Now I can only access hd0a\system\home...
Thanks.
Tagged:
0
Comments
-
Does anyone have such experience?0
-
You can use class filesystem. Example of my request:[CODE]controller.FileSystem.GetDirectory("ctrl:(BACKUP)$/" + backupDir, "D:\\Backup", true);[CODE/]If you want to access root-directory, change "ctrl:(BACKUP)$/" + backupDir to "ctrl:/hda0".This is working, but not the path2: "D:\\Backup", I hadn't figured out why, by now.
0 -
Hello derWestermann,
Can you please show screenshots or a manual reference that says that you can access path "ctrl:/hda0"?
I have not been able to find such source nor was I able to access anything below the HOME directory on my controller.
Thanks!—Maxim RiabichevPC Software Support Engineer0 -
As I mentioned in Thread PC SDK 2021.3 FileSystem.GetDirectoryThis way, it works:[CODE]
controller.Backup("(BACKUP)$/" + backupDir);
do
{
this.Cursor = Cursors.WaitCursor;
System.Threading.Thread.Sleep(200);
this.Cursor = Cursors.Default;
} while (controller.BackupInProgress);
controller.FileSystem.RemoteDirectory = "/hd0a";
string recDir = "D:\\Backup\\" + backupDir;
string sendDir = "/BACKUP/" + backupDir;
controller.FileSystem.GetDirectory(sendDir, recDir);
[CODE/]
0 -
Great, thanks!
—Maxim RiabichevPC Software Support Engineer0 -
derWestermann said:You can use class filesystem. Example of my request:[CODE]controller.FileSystem.GetDirectory("ctrl:(BACKUP)$/" + backupDir, "D:\\Backup", true);[CODE/]If you want to access root-directory, change "ctrl:(BACKUP)$/" + backupDir to "ctrl:/hda0".This is working, but not the path2: "D:\\Backup", I hadn't figured out why, by now.0
-
Hello derWestermann,
I change "ctrl:(BACKUP)$/" + backupDir to "ctrl:/hda0",but the vs throw exception:”parameter name: path2 “ ,why is this?
0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings