MyDocuments folder?

  • Thread starter Thread starter dgk
  • Start date Start date
D

dgk

How can I find out what folder is MyDocuments for the current user? I
figured that I'd find it somewhere in system.environment but I don't
see anything useful there. It doesn't look like an environmental
variable.
 
* dgk said:
How can I find out what folder is MyDocuments for the current user? I
figured that I'd find it somewhere in system.environment but I don't
see anything useful there. It doesn't look like an environmental
variable.

\\\
Dim s As String = Environment.GetFolderPath(Environment.SpecialFolder.Personal)
///
 
\\\
Dim s As String = Environment.GetFolderPath(Environment.SpecialFolder.Personal)
///

Thanks loads. But you know, this is one of the things that drives me
nuts with dotnet. Using Help to find something that I don't already
know.

I actually got to the enum before I posted this but kept coming up
with help pages telling me that it wasn't intended to be used directly
in my code. And, of course, help for GetFolderPath has MyComputer and
MyPictures and MyMusic. But for MyDocuments it becomes Personal. Do
they do this deliberately just to drive us nuts?
 
* dgk said:
Thanks loads. But you know, this is one of the things that drives me
nuts with dotnet. Using Help to find something that I don't already
know.

I actually got to the enum before I posted this but kept coming up
with help pages telling me that it wasn't intended to be used directly
in my code. And, of course, help for GetFolderPath has MyComputer and
MyPictures and MyMusic. But for MyDocuments it becomes Personal. Do
they do this deliberately just to drive us nuts?

I don't understand this naming too. Maybe they looked at the names at
the underlying Windows API and chose similar names.

;-)
 
Back
Top