# My Documents path variable?

**URL:** <https://www.finalbuilder.com/forums/t/my-documents-path-variable/746>\
**Category:** Discussion\
**Created:** [February 6, 2008, 10:11am UTC](https://www.finalbuilder.com/forums/t/my-documents-path-variable/746 "2008-02-06T10:11:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [February 6, 2008, 10:11am UTC](https://www.finalbuilder.com/forums/t/my-documents-path-variable/746/1 "2008-02-06T10:11:24Z")

</div>

Is there a variable in FB which contains the current users My Documents path? HOMEPATH looks like it - but does not work. I´d prefer a var like MYDOCUMENTSPATH.

-Ralf

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [February 6, 2008, 12:12pm UTC](https://www.finalbuilder.com/forums/t/my-documents-path-variable/746/2 "2008-02-06T12:12:28Z")

</div>

The HOMEPATH variable is a windows environmenet variable. You can easily combine it with the HOMEDRIVE variable and define your own MYDOCUMENTSPATH user or project variable.

---

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [February 8, 2008, 1:22am UTC](https://www.finalbuilder.com/forums/t/my-documents-path-variable/746/3 "2008-02-08T01:22:54Z")

</div>

Yes, I could use the HOMEPATH environment var - but that would need to be set explicitly. It´s not set by default on my system. But the My Documents path like the System32 path and the Temp path can easily be access through a Win32 API function so I think it would be easiest to hand this functionality through to FB scripts. This kind of “reflection” on the system where FB is running would be most convenient.   
  
 -Ralf
