I use this code to display a path to the user:
string path =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
The problem that I have is that it return "C:\Program files\..." on a PC
with Spanish Vista.
I know that it is the correct path in Vista even that the user see it as:
"c:\Archivos de programa\.." But how do I get the code above to give me the
spanish version of the path?
Regards Torben
MC - 31 Jul 2008 15:55 GMT
>I use this code to display a path to the user:
> string path =
[quoted text clipped - 7 lines]
> the
> spanish version of the path?
Are you sure that "Archivos de programa" is not an alias for "Program
Files" -- i.e., are they the same folder?
System.Reflection.Assembly.GetExecutingAssembly should not give incorrect
answers.