PC Review


Reply
Thread Tools Rate Thread

Determining Desktop Path

 
 
Roger
Guest
Posts: n/a
 
      2nd Sep 2003
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!
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      2nd Sep 2003
Hello,

"Roger" <(E-Mail Removed)> schrieb:
> 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
--
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
Roger
Guest
Posts: n/a
 
      2nd Sep 2003
Thanks. I was onm the right path, just didn't have the
syntax right.


>-----Original Message-----
>Hello,
>
>"Roger" <(E-Mail Removed)> schrieb:
>> 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
>--
>MVP · VB Classic, VB.NET
>http://www.mvps.org/dotnet
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining the path to the .NET framework andreas.baus@meta-level.de Microsoft Dot NET Framework 3 12th Aug 2005 05:36 PM
Determining path to document template PO Microsoft Excel Programming 2 17th Apr 2005 01:49 AM
Determining the path to storage cards.. =?Utf-8?B?S2V2aW4gWiBHcmV5?= Microsoft Dot NET Compact Framework 1 4th Feb 2004 04:35 PM
Determining if a path is a network path (aka mapped drive - PathIsNetworkPath) Robert Munroe Microsoft C# .NET 0 10th Dec 2003 10:35 PM
determining correct ARC path? Tim Stephens Microsoft Windows 2000 Setup 0 5th Sep 2003 11:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:52 AM.