The "Program Files" folder in Vista

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
 
M

Michael A. Covington

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?
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top