Determining Desktop Path

  • Thread starter Thread starter Roger
  • Start date Start date
R

Roger

Can anyone shed some light on how to determine what the
desktop path is? Obviously I know where my desktop is but
I want to be able to get the path of a given users desktop
path in my code at runtime.

Thanks!
 
Hello,

Roger said:
Can anyone shed some light on how to determine what the
desktop path is? Obviously I know where my desktop is but
I want to be able to get the path of a given users desktop
path in my code at runtime.

You can get the current desktop path by using the code below:

\\\
Dim s As String = _
Environment.GetFolderPath(SpecialFolder.DesktopDirectory)
///

HTH,
Herfried K. Wagner
 
Back
Top