Question: Some resources I have in my project are fine and working Ok using string paths but what if I move the project to another directory or to another computer, it will stop working.

Please I need to get the path of the resources folder of my project in a string variable,

Something like this

```
C:\Users\User1\Documents\<projects folder>\<project name>\Resources\

```

Thanks in advance.

Answer: 
If the files are stored in your project folder, you can retrieve the files using 
`System.AppDomain.CurrentDomain.BaseDirectory`. 
This statement retrieves the path as to where your application is installed. 
Click [Here](http://msdn.microsoft.com/en-us/library/system.appdomain.basedirectory%28v=vs.110%29.aspx) to get a detailed explanation on this.
If you know the path relative to where the app is running, you can do something like this.
First, get the app's running path: 

```
string RunningPath = AppDomain.CurrentDomain.BaseDirectory;

```

Then, get navigate to the relative path using something like this:

```
string FileName = string.Format("{0}Resources\\file.txt", Path.GetFullPath(Path.Combine(RunningPath, @"..\..\")));

```

In this example I my "Resources" folder is located two directories up from my running one. 

I should also mention, that if your resource is included in the project, you should be able to get it using:

```
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames();

```

this will return an array of your resources.