Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SysDir--How to find it?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00209098
Message ID:
00209104
Views:
20
>How do I determine what the current Windows\System directory is? Can I use an API call, or is there is VFP command that I'm over looking?
>
>Thanks!

Hi Paul,

Use the following to get the Windows System Directory:
DECLARE INTEGER GetSystemDirectory IN Win32API;
  STRING @lpBuffer, INTEGER uSize
lcbuffer = SPACE(260)
lnsize = LEN(lcbuffer)
lnsize = GetSystemDirectory(@lcbuffer, lnsize)
IF lnsize > 0
  lcbuffer = LEFT(lcbuffer, lnsize)
ENDIF
If the function fails, the value will be zero.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform