Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2184
  • Last Modified:

vb.net desktop location

Is there a way to figure out my desktop location from a vb.net application?
0
jackjohnson44
Asked:
jackjohnson44
1 Solution
 
gangwischCommented:
my.Computer.FileSystem.SpecialDirectories.Desktop
0
 
VoteyDiscipleCommented:
You can do it in 2003 too, it's just a little trickier.

Dim k As RegistryKey = Registry.CurrentUser
k = k.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")
Dim path As String = k.GetValue("Desktop").ToString()
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now