• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

How can one find out the path to one's Desktop?

If you're logged on as Mr._X the path to your desktop might be:

C:\WINNT\Profiles\Mr._X\Desktop

But the exact path depends on what version of Windows you have installed, what drive and what directory you decided to install Windows in etcetera.

Is there a way in VB to retrieve this information?
0
caraf_g
Asked:
caraf_g
  • 2
1 Solution
 
MirkwoodCommented:
Sure, using the registry.

This is the location. I assume you have function to access the registry otherwise I can provide them for you.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Key: Desktop
0
 
caraf_gAuthor Commented:
Thanks!
0
 
MirkwoodCommented:
No hard feelings, but just out of curiosity. Why not an A?
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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