On 20 Jan 2004 18:47:52 +0100,
hi***************@gmx.at (Herfried K.
Wagner [MVP]) wrote:
* dgk <so******************@hot-nospamp-mail.com> scripsit: 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.SpecialFolde r.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?