473,396 Members | 1,936 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,396 software developers and data experts.

Getting systempath in Spanish Vista

I use this code to display a path to the user:
string path =
System.IO.Path.GetDirectoryName(System.Reflection. Assembly.GetExecutingAssembly().Location);

The problem that I have is that it return "C:\Program files\..." on a PC
with Spanish Vista.

I know that it is the correct path in Vista even that the user see it as:
"c:\Archivos de programa\.." But how do I get the code above to give me the
spanish version of the path?

Regards Torben

Jul 31 '08 #1
1 1217
MC
"Torben Laursen" <Do**@notwork.comwrote in message
news:30**********************************@microsof t.com...
>I use this code to display a path to the user:
string path =
System.IO.Path.GetDirectoryName(System.Reflection. Assembly.GetExecutingAssembly().Location);

The problem that I have is that it return "C:\Program files\..." on a PC
with Spanish Vista.

I know that it is the correct path in Vista even that the user see it as:
"c:\Archivos de programa\.." But how do I get the code above to give me
the
spanish version of the path?
Are you sure that "Archivos de programa" is not an alias for "Program
Files" -- i.e., are they the same folder?

System.Reflection.Assembly.GetExecutingAssembly should not give incorrect
answers.
Jul 31 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: AC | last post by:
I have a Spanish page that contains a link to send an email (one of those "send this page to someone"). The Hyperlink uses the MailTo:?subject=something format. It' looks like tihs: ...
13
by: Mark Rae | last post by:
Hi, I have used the code below to return the default printer in 32-bit WinXP Pro, but now that I am running 64-bit Vista Business I'm getting an error: using System.Drawing.Printing; using...
1
by: =?Utf-8?B?Q29kZVNsaW5nZXI=?= | last post by:
I plan to build my own 2008 Server/Hyper-V system and will not be using one of the tested Dell or HP systems from the release notes and could use some pointers as to my assumnptions and answers to...
0
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
Try setting the "Neutral Language" in the Assembly Information to one of the Spanish options. Let me know if it works. I've never needed the "Neutral Language" option, so I don't know if it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.