# Access environment variable in propertyCollector

**URL:** https://www.finalbuilder.com/forums/t/access-environment-variable-in-propertycollector/5513
**Category:** Discussion
**Created:** [September 29, 2016, 6:26am UTC](https://www.finalbuilder.com/forums/t/access-environment-variable-in-propertycollector/5513 "2016-09-29T06:26:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rynardald](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@rynardald](https://www.finalbuilder.com/forums/u/rynardald)
#### Post date: [September 29, 2016, 6:26am UTC](https://www.finalbuilder.com/forums/t/access-environment-variable-in-propertycollector/5513/1 "2016-09-29T06:26:22Z")

</div>

Hi,  
I try to check if a directory exists. The path of this directory is set by a evironment variable. My try was to create a property collector as follows:  
**Run on** : Agent  
**Type** : Path Access Plugin  
**Path** : %CODINGTRUNK%\.svn\  
  
But it doesn't work. If i replace the evironment variable with corresponding absolute path it works.  
  
PS: I try to check if on this specific path is a SVN-repository.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [September 30, 2016, 1:36am UTC](https://www.finalbuilder.com/forums/t/access-environment-variable-in-propertycollector/5513/2 "2016-09-30T01:36:52Z")

</div>

Hi&nbsp;Rynardald,  
  
Currently environment variables are only expanded in the Path Finder PlugIn. We’ll update the other path-related plugins to do the same for the next version.
