JohnIdol
January 26th, 2008, 08:38 PM
Hi Guys,
anyone could help me understand the difference between these two methods?
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,
anyone could help me understand the difference between these two methods?
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,