Solved

vb.net desktop location

Posted on 2006-10-31
2
2,159 Views
Last Modified: 2006-11-18
Is there a way to figure out my desktop location from a vb.net application?
0
Comment
Question by:jackjohnson44
2 Comments
 
LVL 10

Accepted Solution

by:
gangwisch earned 500 total points
ID: 17845581
my.Computer.FileSystem.SpecialDirectories.Desktop
0
 
LVL 19

Expert Comment

by:VoteyDisciple
ID: 17846626
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now