Question programmatically access my documents folder for any user

kn33dhlp2

New member
Joined
May 5, 2012
Messages
3
Programming Experience
Beginner
Is it possible to access (read and write) to the My Documents folder for any USER with VB.net ver 1.1? If so, how is this accomplished?

Thank you
 
Do you mean the Documents folder of the current user no matter which user that is or do you mean that every user should be able to access the Documents folder of every other user?
 
I mean the My Documents folder of the CURRENT user. Sorry I wasn't clear.
Don't forget I'm using VB.net version 1.1


Thanks again.
 
In VB 2005 and later you can use My.Computer.FileSystem.SpecialDirectories. In all versions of VB.NET you can use Environment.GetFolderPath. Both options will get the current user's Documents folder as well as various other standard folder paths.
 
Can you also tell me how to get JUST the current user name?
That would be Environment.UserName. You should probably check out everything the Environment class has to offer.
 
Back
Top