Create a file in My Documents folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

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

Thanks in advance
 
Li Pang said:
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.SpecialFolder.Personal)
///
 
Hi Herfried K. Wagner,

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

Thanks in advance
 
Herfried said:
\\\
Imports System
...
Dim s As String = _
Environment.GetFolderPath(Environment.SpecialFolder.Personal)
///

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

Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)

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