473,752 Members | 9,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The "Program Files" folder in Vista

Hi, I have made an application in C#, where I use the statement
Environment.Get FolderPath(Envi ronment.Special Folder.ProgramF iles)
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 4762
Hi,

Maybe it's a problem with your local version.

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"Karsten Lundsgaard" <Ka************ ***@discussions .microsoft.comw rote in
message news:C8******** *************** ***********@mic rosoft.com...
Hi, I have made an application in C#, where I use the statement
Environment.Get FolderPath(Envi ronment.Special Folder.ProgramF iles)
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.comw rote in
message news:C8******** *************** ***********@mic rosoft.com...
Hi, I have made an application in C#, where I use the statement
Environment.Get FolderPath(Envi ronment.Special Folder.ProgramF iles)
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.comw rote in
message news:C8******** *************** ***********@mic rosoft.com...
Hi, I have made an application in C#, where I use the statement
Environment.Get FolderPath(Envi ronment.Special Folder.ProgramF iles)
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
16785
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 and no files are deleted in the folder. The peculiarity of this issue is that the files/subfolders cannot be seen through the windows explorer either. I can only access/delete them through a command shell. Any ideas?
1
1514
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 administrator - when running the app and trying to update with a latter version from a web server (note: the app is installed under the "Program Files" folder) - an exception is thrown as the normal user doesn't have permission to modify / create...
3
6129
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 Internet Files folder. I'm only received 1 file when I know there is more. Any suggestions are very appreciated. Thanks
4
2346
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 ASP.NET. Recently, I group of user have problems with it because the values of the sessions were not stored correctly (the application save the username in a login page, then other page try to get it and the result was always ""). We restart the web...
1
1841
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: 'mydll', and the following line in red color in the ouput "Line 200: <add assembly="*" />" Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line: 200 Assembly Load Trace: The following information can be...
4
29215
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? (either C:\Windows or C:\WINNT etc.) Thanks for replying... --
1
1706
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. I got a warning about "files in use" during installation that needed updating. I aborted the install since the files were Intel Viiv and Microsoft Vista Media Center related so didn't want to mess them up. Can someone explain why Python wants to...
0
1114
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
2917
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 the text files from the watched folder line by line into variables and then posting them to a SQL table. All of the code for the form is shown below. And it works fine except for 2 issues. First issue: In the Finally of the Try for teh SQL...
0
9020
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9616
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9423
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6830
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4726
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4910
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3340
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2819
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2237
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.