Product SiteDocumentation Site

8.77. SysVersion


>>-SysVersion()------------------------------------------------><

Returns a string to identify the operating system and version. The first word of the returned string contains the identifier for the operating system and the rest of the string contains an operating system specific version string. Something like: WindowsNT x or Linux x.
Some possible output for operating systems supported by ooRexx might be:

Example 8.46. RexxUtil - SysVersion

Say SysVersion()   ->  "Linux #67~precise1-Ubuntu SMP Wed Nov 13 16:16:57 UTC 2013.3.5.0-44-generic"
Say SysVersion()   ->  "WindowsNT 6.01"             /* Windows 7 */

Note

This function can be used to replace the operating-system-specific functions SysWinVer(), and SysLinVer().