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

Create a file in My Documents folder

P: n/a
Hi,

I want to create a file in My Documents folder. How to get the folder path?

Thanks in advance
Jun 8 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Li Pang" <Li****@discussions.microsoft.com> schrieb:
I want to create a file in My Documents folder. How to get the folder
path?

\\\
Imports System
....
Dim s As String = _
Environment.GetFolderPath(Environment.SpecialFolde r.Personal)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jun 8 '06 #2

P: n/a
Hi Herfried K. Wagner,

Thanks a lot. Additional question:
How to get the local language setting?

Thanks in advance

"Herfried K. Wagner [MVP]" wrote:
"Li Pang" <Li****@discussions.microsoft.com> schrieb:
I want to create a file in My Documents folder. How to get the folder
path?

\\\
Imports System
....
Dim s As String = _
Environment.GetFolderPath(Environment.SpecialFolde r.Personal)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jun 9 '06 #3

P: n/a

Herfried K. Wagner [MVP] wrote:
"Li Pang" <Li****@discussions.microsoft.com> schrieb:
I want to create a file in My Documents folder. How to get the folder
path?

\\\
Imports System
...
Dim s As String = _
Environment.GetFolderPath(Environment.SpecialFolde r.Personal)
///


Interesting that there would be two special folders that point to the
same place, I always use:

Environment.GetFolderPath(Environment.SpecialFolde r.MyDocuments)

Is there a situation where the two would point to different locations?

Jun 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.