Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine OS?
Message
From
27/05/2002 08:31:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/05/2002 08:09:42
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00661640
Message ID:
00661646
Views:
21
>Hi,
>
>I want to write a function that gives me the OS of the computer ie Windows 98 / Windows NT etc.
>
>OS(1) function returns Win version number as 4 for Win 98, 4.9 for Win Me, 5 for Win 2000 and so on. Is there any way I can map the return value of OS(1) to the correct equivalent Windows OS version?

A DO CASE, that returns exactly the value you want. Or, define constants for each version of Windows.

The main problem is to get the complete list of OS.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform