Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How do I find the path to the desktop programmatically?


Message #1 by "Mark Warner" <markwar@a...> on Fri, 7 Mar 2003 11:18:45 +0200
> Hi List

How do I find the path to the desktop programmatically?

I am getting "Desktop" back from a folder tree view and I would like to
get the full path to the desktop.

Regards
Mark Warner

______________________________________________
"The information contained in this communication is confidential and
may be legally privileged.  It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised to
receive it.  If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking action
in reliance of the contents of this information is strictly prohibited
and may be unlawful.  Absa is liable neither for the proper, complete
transmission of the information contained in this communication, nor 
for any delay in its receipt, nor for the assurance that it is 
virus-free."

-----------------------------------------------------
Hi Mark,

Just paste the below code in VB and get the answer.

    Dim wshShell

    Set wshShell = CreateObject("WScript.Shell")

    MsgBox (wshShell.SpecialFolders("Desktop"))


Thanks,
Rage

  Return to Index