The "Program Files" folder in Vista

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I have made an application in C#, where I use the statement
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)
to get the name of the "Program Files" folder.
It works fine in "Windows 2000" and "Windows XP", but it fails when I'm
using "Windows Vista Ultima" in Danish. It returns "Program Files" instead of
"Programmer".
"Programmer " is the name of the folder in explore.

Hope someone can help me - Thanks

Karsten
 
Karsten Lundsgaard said:
Hi, I have made an application in C#, where I use the statement
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)
to get the name of the "Program Files" folder.
It works fine in "Windows 2000" and "Windows XP", but it fails when I'm
using "Windows Vista Ultima" in Danish. It returns "Program Files" instead
of
"Programmer".
"Programmer " is the name of the folder in explore.

That sounds like a bug in Danish Windows Vista.

BUT check this...

Is "C:\Program Files" an alias for "C:\Programmer"? Vista does some
aliasing (use of multiple names for the same location).

What is the value of the %ProgramFiles% environment variable?
 
Thanks for your help.

Karsten

Michael A. Covington said:
That sounds like a bug in Danish Windows Vista.

BUT check this...

Is "C:\Program Files" an alias for "C:\Programmer"? Vista does some
aliasing (use of multiple names for the same location).

What is the value of the %ProgramFiles% environment variable?
 
Back
Top