How to get the full path where the project script resides

How do I dynamically get the full folder path of project root?
I see we can refer any file name using the "Data\Config.xlsx" notation, so Is there a way to get the absolute path?

5 Likes

Use this : Path.GetFullPath(“fileName”)

3 Likes

Or this: IO.Directory.GetCurrentDirectory
You will get current working directory.

Cheers

9 Likes

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