# File path to home dir

**URL:** <https://tech-community.robotics.abb.com/t/file-path-to-home-dir/1555>\
**Category:** Developer Tools\
**Created:** [November 29, 2007, 12:04pm UTC](https://tech-community.robotics.abb.com/t/file-path-to-home-dir/1555 "2007-11-29T12:04:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klaus](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Klaus](https://tech-community.robotics.abb.com/u/Klaus)\
**Post date:** [November 29, 2007, 12:04pm UTC](https://tech-community.robotics.abb.com/t/file-path-to-home-dir/1555/1 "2007-11-29T12:04:19Z")

</div>

I have made a function to save receipe data to XML file. It works on VC but not at the real FP. Can sombody help witk the syntax path to save file in home. I,v tried with the on i use in rapid code but it wont work

The path “HOME:/Receptdata.mod” in rapid code

Best regards Klaus

---

<div class="post-metadata">

**Author:** ![RussD](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RussD](https://tech-community.robotics.abb.com/u/RussD)\
**Post date:** [November 29, 2007, 1:16pm UTC](https://tech-community.robotics.abb.com/t/file-path-to-home-dir/1555/2 "2007-11-29T13:16:40Z")

</div>

The default value of RemoteDirectory should be the home directory of your current system.

I assume that you are using .Net functionality to create your files, but these components don’t know anything about the robot controller, so you need to create and save your file on the FlexPendant (LocalDirectory) then use PutFile to copy/save it to the controller (RemoteDirectory). Check to see what the value of LocalDirectory is, I believe it is /temp, which is a directory on the FlexPendant’s file system, which .Net will be able to use.

If you search “file” or something similar in this forum, I think you will find other postings that talk about this issue too.

---

<div class="post-metadata">

**Author:** ![Klaus](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Klaus](https://tech-community.robotics.abb.com/u/Klaus)\
**Post date:** [December 1, 2007, 11:35am UTC](https://tech-community.robotics.abb.com/t/file-path-to-home-dir/1555/3 "2007-12-01T11:35:47Z")

</div>

Hei Russ.

thanks for your help. I can see how to put and get files but how do i creat til file, read and write to it. normel i use open for output or input and then close. Read and write lines

Klaus

---

<div class="post-metadata">

**Author:** ![Ingela](https://avatars.discourse-cdn.com/v4/letter/i/53a042/32.png) [@Ingela](https://tech-community.robotics.abb.com/u/Ingela)\
**Post date:** [December 4, 2007, 2:29pm UTC](https://tech-community.robotics.abb.com/t/file-path-to-home-dir/1555/4 "2007-12-04T14:29:58Z")

</div>

Hello Klaus,

In RAB 5.10, which will soon be released, the static property **ABB.Robotics.Controllers.SystemInfoDomain. SystemInfo.SystemPath** returns the path in the controller file system to the system directory of the active system, and you just need to add “/HOME” to the returned string to get the complete path to the HOME directory.

For .NET related issues, such as how to **create** the file, you need to use Microsoft’s .NET documentation, either from Windows Start button or at MSDN (Microsoft Developer Network) at [www.msdn.com](http://www.msdn.com). Check that the method you want to use is supported by the software platform that the FlexPendant uses: **Windows CE** and .NET **Compact** Framework (2.0 ).
