Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding windows root directory
Message
From
18/12/1997 09:25:46
 
 
To
18/12/1997 09:18:02
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00066726
Message ID:
00066884
Views:
42
>Anyway, concerning the VFP winhome() function, type the following:
>SET LIBRARY TO FOXTOOLS
>? WINHOME()

NEVER MIND!

I just recalled that I had a winhome.fxp function lingering around
that included the following code:

PRIVATE cTempstr,nDirectlen,cWindirect

getwdir = RegFn32("GetWindowsDirectory","@CI","I")
cTempstr = REPLICATE(CHR(0),144)
nDirectlen = CallFn(getwdir,@cTempstr,144)
cWindirect = LEFT(cTempstr,nDirectlen)

RETURN cWindirect
__________________________________________________
Mesa Vista Software (david@mesa-vista.com)
Previous
Reply
Map
View

Click here to load this message in the networking platform