Kent,
Here is the API version,

#DEFINE CSIDL_DESKTOPDIRECTORY 0x0010 &&The Desktop folder
#DEFINE CSIDL_WINDOWS 0x0024 &&The Windows directory or SYSROOT
#DEFINE CSIDL_PROGRAM_FILES 0x0026 && The Program Files folder

LOCAL cSpecialFolderPath, cDesktopPath
cSpecialFolderPath = space(255)

DECLARE SHGetSpecialFolderPath IN SHELL32.DLL ;
LONG hwndOwner, ;
STRING @cSpecialFolderPath, ;
LONG nWhichFolder

SHGetSpecialFolderPath(0, @cSpecialFolderPath, CSIDL_DESKTOP)
cDesktopPath = Alltrim(cSpecialFolderPath)
cDesktopPath = SubStr(cDesktopPath,1, Len(cDesktopPath)-1)
Messagebox(cDesktopPath,0,"USING SHGetSpecialFolderPath")

Dave Crozier


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Kent Belan
Sent: 05 December 2007 16:55
To: 'ProFox Email List'
Subject: Program Files path

Hello,
How can I determine the drive and full path where the Program Files folder
is located?

Thanks,
Kent




[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to