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
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.
ReplyDeleteMany thanks.
ReplyDeleteVery usefull post for me.
Awesome, thanks!
ReplyDeleteThank you so much for this post!!
ReplyDeleteVery Simple!
Very Helpful!!
Cool.
ReplyDeleteThe wonder of the internet!
Thanks.
Marc.
very good!
ReplyDeleteYEEEAAAHHH! Massive help, thank you VERY MUCH!
ReplyDelete^_^
:D LOVE IT THANKKS!!!!
ReplyDeleteThank you for the post.
ReplyDeleteI bookmarked this post it so useful, thank you so much :D :D :D :D
ReplyDeleteExcellent info...I appreciate that you took the time and saved me some time!
ReplyDeleteMark.
Excellent info...I appreciate that you took the time and saved me some time!
ReplyDeleteMark.
omg it works!!!!
ReplyDelete