user13928900
user13928900

Reputation:

How Can I get the root directory to the project programatically

I am trying to find a way to get the path to the very first / root directory of my project and haven't quite been able to despite many similar question on SO.

Upvotes: 1

Views: 96

Answers (1)

AbdelAziz AbdelLatef
AbdelAziz AbdelLatef

Reputation: 3744

Each of GetParent and .Parent move you one step up the directory, so you can use GetParent or .Parent three times.

Upvotes: 1

Related Questions