Page 1 of 1 1
Topic Options
#33586 - 2002-11-26 08:56 PM XP Identifier
Trox Offline
Fresh Scripter

Registered: 2002-09-17
Posts: 34
Loc: St. Petersburg, FL
What can I do to identify if a PC is running Win2000 vs. WinXP?
_________________________
Thanks ~ Trox John Wayne's not dead - he's frozen. And as soon as we find the cure for cancer we're gonna thaw out the duke and he's gonna be pretty pissed off! ~Dennis Leary~

Top
#33587 - 2002-11-26 08:59 PM Re: XP Identifier
Lee Wilmott Offline
Starting to like KiXtart

Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
Trox,

This is crystal clear in the manual.

Please take the time to have a look. Look up @PRODUCTTYPE.

Lee

Top
#33588 - 2002-11-26 09:04 PM Re: XP Identifier
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
You can try this..
code:
If @DOS = "5.1"
?"Windows XP"
ENDIF

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33589 - 2002-11-26 09:43 PM Re: XP Identifier
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
One of these should work just fine.

code:
If @PRODUCTTYPE = "Windows XP Professional"
? "You are running Windows XP"
Else
? "You are not running Windows XP"
Endif

.
or this is another way

code:
@ECHO OFF
IF NOT "%OS%" == "Windows_NT" GOTO WIN9X
VER|FIND /I "XP" >NUL && IF %ERRORLEVEL% EQU 0 GOTO XP
IF not "%ALLUSERSPROFILE%" == "" GOTO WIN2K
IF "%OS%" == "Windows_NT" GOTO NT4
GOTO END
:XP
ECHO Found Windows XP
REM Or what ever command you want to run.
GOTO END
:WIN2K
ECHO Found Windows 2000
REM Or what ever command you want to run.
GOTO END
:NT4
ECHO Found Windows NT 4
REM Or what ever command you want to run.
GOTO END
:WIN9X
ECHO Found Windows 9x
ECHO You should see this on Windows ME
pause
REM Or what ever command you want to run.
GOTO END
:END

Even the one that Kent showed.

Top
#33590 - 2002-11-26 10:32 PM Re: XP Identifier
Trox Offline
Fresh Scripter

Registered: 2002-09-17
Posts: 34
Loc: St. Petersburg, FL
Thanks for the help.

I'll take a closer look at the manual next time Lee. Didn't mean to get your panties up in a bunch there buddy [Big Grin]
_________________________
Thanks ~ Trox John Wayne's not dead - he's frozen. And as soon as we find the cure for cancer we're gonna thaw out the duke and he's gonna be pretty pissed off! ~Dennis Leary~

Top
#33591 - 2002-11-27 02:16 AM Re: XP Identifier
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
One newbie telling another to RTFM [Big Grin] LOL [Big Grin]

Good thing it wasn't me saying it, 'cause I don't wear panties. [Eek!]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.061 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org