# Robotscript required for the work

**URL:** <https://forum.robotframework.org/t/robotscript-required-for-the-work/6864>\
**Category:** Robot Framework\
**Created:** [19 February 2024 16:46 UTC](https://forum.robotframework.org/t/robotscript-required-for-the-work/6864 "2024-02-19T16:46:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vamsi\_k](https://avatars.discourse-cdn.com/v4/letter/v/90ced4/32.png) [@Vamsi\_k](https://forum.robotframework.org/u/Vamsi_k)\
**Post date:** [19 February 2024 16:46 UTC](https://forum.robotframework.org/t/robotscript-required-for-the-work/6864/1 "2024-02-19T16:46:21Z")

</div>

I need a robot script so that I want to access the file in the root directory of virtual machine

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [20 February 2024 07:43 UTC](https://forum.robotframework.org/t/robotscript-required-for-the-work/6864/2 "2024-02-20T07:43:30Z")

</div>

Hi Vamsi,

Writing robot framework scrips might give you superpowers but it doesn’t give you superuser rights.

A robot script can only access a file if the user running the robot has suffient rights.

What do you want tp do with the file? which library are uou wabting to use? Its really not clear what ypu are asking.

For example [Get File](https://robotframework.org/robotframework/latest/libraries/OperatingSystem.html#Get%20File) can read a text file, but if the file is not text that may not help.

Not sure if my answer was helpful, but with a vauge question not sure i could be,

Dave

---

<div class="post-metadata">

**Author:** ![Vamsi\_k](https://avatars.discourse-cdn.com/v4/letter/v/90ced4/32.png) [@Vamsi\_k](https://forum.robotframework.org/u/Vamsi_k)\
**Post date:** [20 February 2024 08:27 UTC](https://forum.robotframework.org/t/robotscript-required-for-the-work/6864/3 "2024-02-20T08:27:39Z")

</div>

I want a robot framework script so that I want to enter into root directory from home directory

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [20 February 2024 09:42 UTC](https://forum.robotframework.org/t/robotscript-required-for-the-work/6864/4 "2024-02-20T09:42:07Z")

</div>

[OperatingSystem](https://robotframework.org/robotframework/latest/libraries/OperatingSystem.htm) library has keywords for most all the Operating System level actions you might want to do, the rootdirectory of most machines is ”/” (or "c:" on windows)

Since you didn’t say what you wantto do, i don’t kbow what to suggest, have a look at the keywords in the OperatingSystem library, hopefully something there will be what you want.

Dave
