Build full address from relative address?

Hi all,

Just struggling to find a way to build a full file path address from a relative address.
I have some xlsx files store within my project (“Data\Documentation\FILEXYZ.xlsx”) and need to get the full address to pass into another process. Is there a way to convert the relative address to a full address at all?

Thanks,

You can use Environment.CurrentDirectory to get the full path of your project.
Merge that with your relative path and it should be what you’re looking for.

1 Like

@adam.williamson You can use Environment.CurrentDirectory to get the path in which you are working. Append that with your required path. Eg. Environment.CurrentDirectory+"\Data\Extracted"

1 Like

Perfect! Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.