🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #123

Re: detecting windows version from TP7?

#123
From: Frederic Pasteleurs
Date: Mon, 22 Jul 2002 16:47
25 lines
2061 bytes

Ralf A. Quint wrote:
> 
> Check for the "real" DOS version of 5.50, which will indicate that a
> NT based Windows (NT 3.51, NT 4.0, W2K or XP) is running....
> 

All flavours of Windows NT set up a lot of environment variables. I 
don't remember which variable to use, but if you type SET in a DOS 
window, you list all the env vars that are set in your system.

The variable "WINDIR=" is set by the 3.1/9x branch.

Pick a variable named "STEPPING=" or something like that (indicates the 
CPU stepping and is maintained by the kernel), read this variable using 
the GETENV() function and see if it contain something. If the string is 
not empty, you know that you run a NT flavour of Windows.

Fred.

-- 
Remove OBVIOUS from e-mail before reply

Attached WORD documents are sent to /dev/null :-)
Technical Details
Message-ID: <3D3C370F.8000307@tiscalinet.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news.worldonline.be!not-for-mail
References: <ah03ch$80c$1@terabinaries.xmission.com> <9sj9ju4ll2d551j6mc3o07p24cdmc8chlu@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108ebd,6f578820cfa1197c
X-Google-Attributes: gid108ebd,public
X-Google-Thread: 111659,6f578820cfa1197c
X-Google-Attributes: gid111659,public
X-Google-ArrivalTime: 2002-07-22 09:54:54 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!news.worldonline.be!not-for-mail
From: Frederic Pasteleurs <OBVIOUSmasterfrd@tiscalinet.be>
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal
Subject: Re: detecting windows version from TP7?
Date: Mon, 22 Jul 2002 18:47:11 +0200
Organization: Worldonline Belgium
Lines: 26
Message-ID: <3D3C370F.8000307@tiscalinet.be>
References: <ah03ch$80c$1@terabinaries.xmission.com> <9sj9ju4ll2d551j6mc3o07p24cdmc8chlu@4ax.com>
NNTP-Posting-Host: adsl.11.8.worldonline.be
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.worldonline.be 1027356884 18961 212.233.11.8 (22 Jul 2002 16:54:44 GMT)
X-Complaints-To: abuse@worldonline.be
NNTP-Posting-Date: Mon, 22 Jul 2002 16:54:44 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529
X-Accept-Language: fr-be, en-us