Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Detecting Windows 98 Platforms

Keywords: 	  winversion winmetrics

Question:

How do I detect Windows 98? Winmetrics(-4) doesn't return Windows 98 correctly.

Answer:

It's the same as 95.

Use the function WinVersion to tell which one you have.

  1. 95 is 4.0
  2. 98 is 4.1
;determine 95 or 98 platform
majorver= WinVersion(1)
if majorver == 4
   minorver = WinVersion(0)
   if minorver==0
      Message("You are running", "Windows 95")
   else
      Message("You are running", "Windows 98 or newer")
endif
exit

Question:

How do I detect the service pak? For Win95/98 Use WinVersion to see which service pack is installed
;Some Examples of service pack Build Numbers...
;Windows 95 4.00.950
;Windows 95 4.03.1214 B
;Windows 95 4.00.950a
;Windows 95 4.00.1111b
;Windows 98 4.10.1650
;Windows 98 4.10.1998
build = WinVersion(2)
CSD = WinVersion(3)
Message("Windows Version", StrCat(build, @CRLF, CSD, @CRLF))



Article ID:   W12724
Filename:   WinMetrics and Windows98.txt