Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving the operating system version
Message
From
16/05/2005 05:59:18
 
 
To
16/05/2005 05:56:43
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014497
Message ID:
01014505
Views:
17
thanks Gregory

>>I need to know which Operating system is running on a PC,
>>I know I have to Use OS() but how can I tell which is the OS ?
>>I mean which number is associated to W98 or Win ME whhere can I find a table
>>whith the code numbers of the Operating Systems ?
>>thx
>
>This is what I use
>
>*-----------------------------------------------------------------------
>#define VERSION_OF_WINDOWS	(val(ltrim(substr(os(), at(' ', os())))))
>
>#define	WIN95_VERSION		4.00
>#define	WIN98_VERSION		4.10
>#define	WINME_VERSION		4.90
>#define	WIN2K_VERSION		5.00
>#define	WINXP_VERSION		5.01
>#define	WIN2003_VERSION		5.02
>
>#define	WIN98_OR_HIGHER		(VERSION_OF_WINDOWS >= WIN98_VERSION)
>#define	WIN2K_OR_HIGHER		(VERSION_OF_WINDOWS >= WIN2K_VERSION)
>#define	WINXP_OR_HIGHER		(VERSION_OF_WINDOWS >= WINXP_VERSION)
>*-----------------------------------------------------------------------
>
Previous
Reply
Map
View

Click here to load this message in the networking platform