I recommend not using relative paths in the first place.
Use Path.Combine to turn your relative paths into absolute paths. For example, you can use this to get the full path to your EXE startup:
string exeFile = (new System.Uri(Assembly.GetEntryAssembly().CodeBase)).AbsolutePath;
Once you have this, you can get its directory:
string exeDir = Path.GetDirectoryName(exeFile);
and turn your relative path to the absolute path:
string fullPath = Path.Combine(exeDir, "..\\..\\Images\\Texture.dds");
This will be much more reliable than using relative paths.
Reed copsey
source share