PDA

Click to See Complete Forum and Search --> : Getting the user's application folder


programatix
Apr 7th, 2002, 05:35 AM
Hi,

I'm trying to retrieve the user's application folder. Normally I'll retrieve the folder from the registry in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

My question is, is there any .NET Framework class that can do the same job?

Thanks in advance.

DevGrp
Apr 7th, 2002, 09:29 AM
What folder are you talking about?

If its the folder that the program is in, then its Environment.CurrentDirectory

Jop
Apr 7th, 2002, 10:43 AM
You can use the system.Enviroment to do this:


MessageBox.Show(System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationDa ta))


Check out all the members of the System.Enviroment.SpecialFolder.. this is an enum for all the special folders.

programatix
Apr 10th, 2002, 05:32 PM
Thanks