# Windows environment variables in Rapid

**URL:** <https://tech-community.robotics.abb.com/t/windows-environment-variables-in-rapid/11679>\
**Category:** UpFeed\
**Tags:** userprofile, environment-variable\
**Created:** [November 4, 2024, 8:44am UTC](https://tech-community.robotics.abb.com/t/windows-environment-variables-in-rapid/11679 "2024-11-04T08:44:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Risto\_Virtanen](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Risto\_Virtanen](https://tech-community.robotics.abb.com/u/Risto_Virtanen)\
**Post date:** [November 4, 2024, 8:44am UTC](https://tech-community.robotics.abb.com/t/windows-environment-variables-in-rapid/11679/1 "2024-11-04T08:44:21Z")

</div>

Is there any way to use Windows environment variables (for example %UserProfile%) from Rapid code? I suppose not since the character % is reserved for late bindings in Rapid. I have a practical case where I’d like to open a file from the Windows Documents folder. In Windows the path would be “C:\Users%USERPROFILE%\Documents”. Is there any workaround for this? If not, perhaps it’s worth building something for it. That would allow customized Rapid program behaviour for each Windows user.
