Dim dir as String
dir = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
There are several other special folders you can get as well:
- Personal (My Documents also work on devices)
- MyPictures
- DesktopDirectory
- MyMusic
- StartMenu
- Startup
- Favorites
- ApplicationData
- CommandApplicationData
- CommonProgramFiles
- Cookies
- History
- InternetCache
- LocalApplicationData
- MyComputer
- ProgramFiles
- Programs
- Recent
http://www.thescarms.com/dotnet/SpecialFolders.aspx
13 comments:
Thanks, what a relief! This is much easier than in VB 6 where you have to use API and write a module to be able to access special folders easily.
Many thanks.
Very usefull post for me.
Awesome, thanks!
Thank you so much for this post!!
Very Simple!
Very Helpful!!
Cool.
The wonder of the internet!
Thanks.
Marc.
very good!
YEEEAAAHHH! Massive help, thank you VERY MUCH!
^_^
:D LOVE IT THANKKS!!!!
Thank you for the post.
I bookmarked this post it so useful, thank you so much :D :D :D :D
Excellent info...I appreciate that you took the time and saved me some time!
Mark.
Excellent info...I appreciate that you took the time and saved me some time!
Mark.
omg it works!!!!
Post a Comment