third_party_content:community:commentary:forums_nonworks:c16ce1eb06f2dce88525678400597935

Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 02 JUN 1999 12:17:17PM Victor Engel wrote:

How can I tell from Arev what the OS is? Currently I am piping the VER command, but sometimes I am getting blanks. I would specifically like to know how to detect Windows NT, Windows 98, and Windows 2000.


At 02 JUN 1999 04:40PM Steve Smith wrote:

Victor,

There are standard environment variables set from

within these products - you might be able to use

these (eg. winbootdir & windir). Otherwise, the

"DOS version" of all these products differs eg.

Win 95 returns DOS versions 7.0 or DOS 7.10.

Code below.

Steve

DOSVER=\02000000000000000000EB2290000000\

DOSVER:=\00000000000000000000000000000000\

DOSVER:=\0000000000000000000000240000B430\

DOSVER:=\CD21BD110050B400E83D002EC646002E\

DOSVER:=\2EFF063000455886E0B400E82A001E8C\

DOSVER:=\CA8EDABE11002E8B0E3000B40F2EFF1E\

DOSVER:=\0A0057A5A45F2E8B0E300033C033D2B4\

DOSVER:=\102EFF1E0A001FCBB400BB0A0033C933\

DOSVER:=\D2F7F352410BC075F65A80FA0A730680\

DOSVER:=\C230EB049080C2372E8856002EFF0630\

DOSVER:=\0045E2E5C3\

OPEN 'BP' TO HANDLE THEN

WRITE DOSVER TO HANDLE,'$DOSVER'

END

* AREV syntax

DECLARE FUNCTION DOSVER

VERSION=DOSVER()


At 02 JUN 1999 05:11PM Victor Engel wrote:

Thanks, Steve. Seems to work like a charm.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/c16ce1eb06f2dce88525678400597935.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1