Hi Ted and Tracy
What I did was OS(3) and OS(4) looking for 6 and 1 or above. 6.1 being
windows 7 onwards.
Getenv("PROGRAMDATA") gets the path if it exists.
Al
-----Original Message-----
>>
>> IIRC, there's a WinAPI call exactly for this, as depending on
environmental
>> variables is not a good idea.
>
Ted is right:
DECLARE integer SHGetFolderPath IN SHFolder.dll integer, integer,
integer, integer, string@
#DEFINE CSIDL_APPDATA 0x001a
#DEFINE CSIDL_COMMON_APPDATA 0x0023
#DEFINE CSIDL_LOCAL_APPDATA 0x001c
STORE 0 TO nreturn, nhwnd, ntoken, nflags
cPath = REPLICATE(CHR(0),254)
nreturn = SHGetFolderPath(nhwnd, CSIDL_COMMON_APPDATA, ntoken, nflags,
@cPath)
cPath = ALLTRIM(cPath, CHR(0))
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/007801cf3716$c2523790$46f6a6b0$@com
** 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.