# How to get the current directory

**URL:** https://www.finalbuilder.com/forums/t/how-to-get-the-current-directory/2338
**Category:** Discussion
**Created:** [February 4, 2015, 6:41am UTC](https://www.finalbuilder.com/forums/t/how-to-get-the-current-directory/2338 "2015-02-04T06:41:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jeffreysadler](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/ecd19e/32.png) [@jeffreysadler](https://www.finalbuilder.com/forums/u/jeffreysadler)
#### Post date: [February 4, 2015, 6:41am UTC](https://www.finalbuilder.com/forums/t/how-to-get-the-current-directory/2338/1 "2015-02-04T06:41:51Z")

</div>

Hi,  
  
I can’t see that there is an action which gets the current directory. How can I do this in Finalbuilder?  
  
Thanks  
  
jeff

---

<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 4, 2015, 7:32am UTC](https://www.finalbuilder.com/forums/t/how-to-get-the-current-directory/2338/2 "2015-02-04T07:32:35Z")

</div>

Hi Jeff

There is no such thing as the current directory in FinalBuilder. You need to specify the full path when using paths in FinalBuilder. FinalBuilder is heavily multi-threaded, and the windows api calls for current directory are not thread safe. This blog post has some useful info on this topic :

> **[Safely Using Relative Paths in Actions](https://www.finalbuilder.com/resources/blogs/postid/666/safely-using-relative-paths-in-actions)**
>
> How to safely use relative paths in actions (for FinalBuilder and Automise.)

---

<div class="post-metadata">

### Author: ![jeffreysadler](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/ecd19e/32.png) [@jeffreysadler](https://www.finalbuilder.com/forums/u/jeffreysadler)
#### Post date: [February 9, 2015, 2:29am UTC](https://www.finalbuilder.com/forums/t/how-to-get-the-current-directory/2338/3 "2015-02-09T02:29:59Z")

</div>

Thanks Vincent.   
  
 I found that variable FBProjectDir gave me what I needed.
