# How to access hd0a file by PC applicatin

**URL:** <https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305>\
**Category:** Developer Tools\
**Tags:** pc-sdk, hd0a, webservice\
**Created:** [July 28, 2021, 1:57am UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305 "2021-07-28T01:57:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon\_dev](https://avatars.discourse-cdn.com/v4/letter/l/e0b2c6/32.png) [@Leon\_dev](https://tech-community.robotics.abb.com/u/Leon_dev)\
**Post date:** [July 28, 2021, 1:57am UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305/1 "2021-07-28T01:57:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Leon\_dev](https://avatars.discourse-cdn.com/v4/letter/l/e0b2c6/32.png) [@Leon\_dev](https://tech-community.robotics.abb.com/u/Leon_dev)\
**Post date:** [December 1, 2021, 12:18am UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305/2 "2021-12-01T00:18:05Z")

</div>

Does anyone have such experience? ☹

---

<div class="post-metadata">

**Author:** ![derWestermann](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@derWestermann](https://tech-community.robotics.abb.com/u/derWestermann)\
**Post date:** [December 6, 2021, 7:55am UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305/3 "2021-12-06T07:55:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)\
**Post date:** [December 7, 2021, 10:53pm UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305/4 "2021-12-07T22:53:34Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![derWestermann](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@derWestermann](https://tech-community.robotics.abb.com/u/derWestermann)\
**Post date:** [December 8, 2021, 9:47am UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305/5 "2021-12-08T09:47:46Z")

</div>

As I mentioned in Thread **_PC SDK 2021.3 FileSystem.GetDirectory_**

This 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/]

---

<div class="post-metadata">

**Author:** ![Maxim](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/maxim/32/4429_2.png) [@Maxim](https://tech-community.robotics.abb.com/u/Maxim)\
**Post date:** [December 8, 2021, 9:58am UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305/6 "2021-12-08T09:58:41Z")

</div>

Great, thanks!

---

<div class="post-metadata">

**Author:** ![Leon\_dev](https://avatars.discourse-cdn.com/v4/letter/l/e0b2c6/32.png) [@Leon\_dev](https://tech-community.robotics.abb.com/u/Leon_dev)\
**Post date:** [January 25, 2022, 6:20am UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305/7 "2022-01-25T06:20:23Z")

</div>

> [@derWestermann](#):
>
> 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.

Thanks for your post.Do you mean that as long as I did the backup to hda0,I can access other files or folders at hda0 besides system\home?Just like an activation? 😃

---

<div class="post-metadata">

**Author:** ![barryjij](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@barryjij](https://tech-community.robotics.abb.com/u/barryjij)\
**Post date:** [January 26, 2022, 8:32am UTC](https://tech-community.robotics.abb.com/t/how-to-access-hd0a-file-by-pc-applicatin/10305/8 "2022-01-26T08:32:31Z")

</div>

Hello derWestermann,  
I change “ctrl:(BACKUP)$/” + backupDir to “ctrl:/hda0”,but the vs throw exception:”parameter name： path2 “ ，why is this？
