Convert relative path to a full path

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

 

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.