Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine OS?
Message
De
27/05/2002 08:31:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/05/2002 08:09:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00661640
Message ID:
00661646
Vues:
20
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform