473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 4740
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true...
1
by: Sam Martin | last post by:
Hi all, Got a problem regarding auto-updating an application. We've got an app which implements the MS AppUpdater application block, however although this all works fine when logged in as an...
3
by: Jim | last post by:
Is it possible to read the Temporary Internet Files folder using C#? I'm messing with FileIO (newbie here) and everything seems to work fine until I try to read the list of files in this Temporary...
4
by: Nicolás Castagnet | last post by:
Hi, I write this post because I notice a strange behavior related with "Temporary Internet Files" and maybe some of you can help me to understand it. I am working in a web application with...
1
by: SalamElias | last post by:
I have a VS 2003 VB web project which works fine, in IE, debug....After several browsing in IE or debugging several ti;mes I start to get the ugly error "Configuration Error ", Access is denied:...
4
by: pedestrian via DotNetMonster.com | last post by:
I'm using VB 2005. How to get the full path for "Program Files" folder in Windows, ie. either it is C:\Program Files or D:\Program Files or etc.? How about the full path of "Windows" folder?...
1
by: Steve Mavronis | last post by:
I tried to install Python 2.51 on Microsoft Vista Ultimate 32-bit because I use the 3D modeler software Blender 2.44, in case I needed additional Python support in the future for add-on scripts. ...
0
by: alan75 | last post by:
the activex.dll from my site goes into the internet temp folder, is there anyway i can make it be in a more secure permanent folder like "C:\WINDOWS\Downloaded Program Files"?
9
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.