Solved

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

Posted on 1999-01-06
3
142 Views
Last Modified: 2010-05-03
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
Comment
Question by:caraf_g
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1454210
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
 
LVL 10

Author Comment

by:caraf_g
ID: 1454211
Thanks!
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1454212
No hard feelings, but just out of curiosity. Why not an A?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Visual Basic Excel Formatting error 4 141
vb6 connector to mongodb 2 139
How to make an ADE file by code? 11 99
MS Access 03, TransferText, decimal places 8 85
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question