473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

MyDocuments folder?

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
3 1610
* 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
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
* 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: jenny | last post by:
Hi, I am trying to find a VB way that would create a folder on all existing drives - the folder name would be the same on each drive. ie c:\backup, d:\backup, etc. But the folders would only be...
7
by: Tom | last post by:
Can anyone give me any advice on how to secure a folder on a network server so that documents in the folder can only be opened through an Access database or by the database admin. I need to store...
0
by: John H. | last post by:
In effort to understand (Outlook) MAPI folder tree structure wrote simple linear code below to navigate tree. Successive "...Folders.GetNext()"'s return same folder at all levels of tree. What...
4
by: Dave Veeneman | last post by:
I'm puzzling over the best design for a Folder object. I have two basic domain objects; leat's call them an Apple and an Orange. The objects are maintained in separate hierarchies, and each...
8
by: vinesh | last post by:
I have sample Asp.Net Web Application project. Let me know how to keep the files related to this project (like the webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate folder within a...
9
by: Paul | last post by:
I'm trying to make get my app to delete all the files in a specified folder and all the files within the folders of the specified folder. e.g. Folder 1 contains three files (File1, File2, File3)...
17
by: rdemyan via AccessMonster.com | last post by:
With A2003, I'm having trouble accessing files in a folder on another computer where back-end files, update files, etc are located. Here's the scenario: 1) Computer #1 - A2003 2) Computer #2 -...
8
by: Franky | last post by:
In a prior post I asked about referencing the folder "My Documents" and someone was good enough to tell me about: SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0, szMyDocPath);...
24
by: biganthony via AccessMonster.com | last post by:
Hi, I have the following code to select a folder and then delete it. I keep getting a Path/File error on the line that deletes the actual folder. The line before that line deletes the files in...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.