Hi Guys,

anyone could help me understand the difference between these two methods?


Code:
path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.Replace("file:/", ""));

path_Startup = System.IO.Directory.GetCurrentDirectory();
I am getting the same result.

I read something about shadow copies and Path.GetDirectoryName being more reliable because of that, but I couldn't find anything too clear.

Anyhelp would be appreciated.

Thanks,