|
-
Apr 7th, 2002, 05:35 AM
#1
Thread Starter
Member
Getting the user's application folder
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.
-
Apr 7th, 2002, 09:29 AM
#2
Frenzied Member
What folder are you talking about?
If its the folder that the program is in, then its Environment.CurrentDirectory
Dont gain the world and lose your soul
-
Apr 7th, 2002, 10:43 AM
#3
Frenzied Member
You can use the system.Enviroment to do this:
VB Code:
MessageBox.Show(System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData))
Check out all the members of the System.Enviroment.SpecialFolder.. this is an enum for all the special folders.
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Apr 10th, 2002, 05:32 PM
#4
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|