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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top