Get OS Info

? tab(-10, AG_OSVER); chr(127);

input "", os'name, os'ver, os'rel, as'platform

AG_OSVER (66) retrieves information about the current host operating system or ATE, including its name, version, and release, plus the platform that this copy of A-Shell was compiled for. The response is a comma-delimited string containing the four values.  For example, a Win10 64 bit system might return:

? os'name        ! "Win10/64"

? os'ver         ! ""

? os'rel         ! 16299

? as'platform    ! Wndows/32

 

It is equivalent to MX_OSVER, which see for more information.