My documents path

My documents path

Postby Marc Vanzegbroeck » Tue Apr 07, 2009 8:25 pm

Hi,

How can I get the 'My documents' path?

Thanks,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: My documents path

Postby anserkk » Wed Apr 08, 2009 4:54 am

Dear Mr.Marc

Code: Select all  Expand view
*------------------------------------*
Function GetMyDocPath()
*------------------------------------*
#define HKEY_CURRENT_USER  2147483649
Local oReg,cPath
oReg := TReg32():New( HKEY_CURRENT_USER,;
             "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",;
                 .f. )
cPath := oReg:Get( "Personal" )
oReg:Close()
Return cPath


Regards
Anser
Last edited by anserkk on Wed Apr 08, 2009 4:57 am, edited 1 time in total.
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: My documents path

Postby Marc Vanzegbroeck » Wed Apr 08, 2009 4:57 am

Thanks Anser,

Regards,
Marc
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests

cron