Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get path of a folder frm Registry

Status
Not open for further replies.

shadowlesshand

Programmer
May 29, 2002
21
HK
Hi,
I need to retreive the path of My Documents folder from the registry. How is that possible, Can I have the code if possible wrt API
thanks
 
I don't know about from the registry but you should be able to get the path to My Documents this way
Code:
'add a reference to Windows Script Host Object Model
    Dim wsh As WshShell
    Dim strMyDocs As String
    Set wsh = CreateObject("wscript.shell")
    strMyDocs = wsh.SpecialFolders("MyDocuments")
    MsgBox strMyDoc

Sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top