Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Special folders

Status
Not open for further replies.

CP60

Programmer
Oct 16, 2008
145
0
0
DE
With Net 2.0 installed, is there a funtion to get the name of a special folder (such as Program files x86 on a 64 bit system) not listed in the Environment.SpecialFolder enum?

These do not work, as they return the x64 folder name and not the x86 folder name:

1. System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)

2. My.Computer.FileSystem.SpecialDirectories.ProgramFiles

In Vb 6 I used the Shell32 dll.
 
PS: I could use the API function call to SHGetKnownFolderPath Lib "shell32"(), but would assume that there is already a built-in function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top