By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

MyDocuments folder?

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* 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)
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
dgk
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?
Nov 20 '05 #3

P: n/a
* 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?


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

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.