468,103 Members | 1,311 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

The "Program Files" folder in Vista

Hi, I have made an application in C#, where I use the statement
Environment.GetFolderPath(Environment.SpecialFolde r.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
Nov 2 '07 #1
3 4531
Hi,

Maybe it's a problem with your local version.

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"Karsten Lundsgaard" <Ka***************@discussions.microsoft.comwrot e in
message news:C8**********************************@microsof t.com...
Hi, I have made an application in C#, where I use the statement
Environment.GetFolderPath(Environment.SpecialFolde r.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


Nov 2 '07 #2

"Karsten Lundsgaard" <Ka***************@discussions.microsoft.comwrot e in
message news:C8**********************************@microsof t.com...
Hi, I have made an application in C#, where I use the statement
Environment.GetFolderPath(Environment.SpecialFolde r.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?
Nov 4 '07 #3
Thanks for your help.

Karsten

"Michael A. Covington" wrote:
>
"Karsten Lundsgaard" <Ka***************@discussions.microsoft.comwrot e in
message news:C8**********************************@microsof t.com...
Hi, I have made an application in C#, where I use the statement
Environment.GetFolderPath(Environment.SpecialFolde r.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?
Nov 13 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Sam Martin | last post: by
4 posts views Thread by Nicolás Castagnet | last post: by
4 posts views Thread by pedestrian via DotNetMonster.com | last post: by
1 post views Thread by Steve Mavronis | last post: by
9 posts views Thread by Keith G Hicks | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.