Function Os() Foundation
Returns the name of the operating system.
Os([<nOsId>]) --> cOsInfo
|OS_DESCRIPTION *)||Complete name with version information|
|OS_PLATFORM||The operating system platform.|
|OS_FAMILY||The operating system family|
|OS_PRODUCT||Short product name|
|OS_FULLNAME||Complete product name|
|OS_VERSION||Up to windows 8 version number formatted to ##.##.####. Windows 10 and later version number formatted to ####.#####|
|OS_PATCH||Information about installed patches/service packs|
Os() returns information about the operating system as a character string.
The environment function Os() determines the name, the type and version information of the operating system running on the computer. The extended classification into platform, family and product is necessary to be able to react to differences or common things more exact if platform-dependent code is to be executed, like DllCall().
The following table shows examples of return values of platform, family and product:
The return value of Os() should always be compared using the == Operator (exact compare). Using the = or the $ operator may result in false results. As an example, the expression "8" $ "Windows 8" results .T. and so does "8" $ "Windows 95/98".
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.