Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell OS version
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00549371
Message ID:
00549382
Views:
21
>Is there a function which return the OS (Win95/98/NT or 2000)
>I'm looking for a way of detexting the Windows System Folder
>(Seems to be either c:\Windows or C:\WINNT... is it different in Win 2000 ?)
>
>Regards,
>
>Gerard

This will give you the WinSys folder location:
lcBuffer = SPACE(255)
DECLARE INTEGER GetSystemDirectory IN WIN32API STRING, INTEGER
lnNameLength = GetSystemDirectory(@lcBuffer, 255)
lcSystemDir = LEFT(lcBuffer, lnNameLength)
This was taken from the API section of UT under the System INfo category.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform