# Convert relative path to a full path

**URL:** https://www.finalbuilder.com/forums/t/convert-relative-path-to-a-full-path/4111
**Category:** Feature Requests
**Created:** [September 14, 2010, 12:55pm UTC](https://www.finalbuilder.com/forums/t/convert-relative-path-to-a-full-path/4111 "2010-09-14T12:55:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pqsystems](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@pqsystems](https://www.finalbuilder.com/forums/u/pqsystems)
#### Post date: [September 14, 2010, 12:55pm UTC](https://www.finalbuilder.com/forums/t/convert-relative-path-to-a-full-path/4111/1 "2010-09-14T12:55:19Z")

</div>

Convert a relative file path to the corresponding full file path.

For example:

C:\a\b\c\d\..\.. ==\> C:\a\b

C:\a\b\c\d\..\..\e ==\> C:\a\b\e

Given that the current directory is C:\a then:

.\b\c\d ==\> C:\a\b\c\d

b\c\d ==\> C:\a\b\c\d

&nbsp;

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [September 14, 2010, 6:51am UTC](https://www.finalbuilder.com/forums/t/convert-relative-path-to-a-full-path/4111/2 "2010-09-14T06:51:11Z")

</div>

Hi Bob,   
  
 You can use the ExpandRelativePath script function to expand relative paths, just be careful not to use them in parallel (ASync Action Group) as the function temporarily sets the applications current working directory so that the path can be expanded.   
  
 ExpandRelativePath("…\", “C:\Windows”); // C:\   
 ExpandRelativePath(“C:\Windows\…\Windows\System32\”, “”); // C:\Windows\System32\   
  
 Regards,   
 Paul.
