[THIN] Re: batch file help

  • From: "David Demers" <david.demers@xxxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Fri, 24 Jan 2003 09:12:34 -0700

Lemme know if it works for you, in my local (quick) testing I found that =
"VER | find" didn't function they way it appears it should.

-----Original Message-----
From: Minero Hector B DLVA [mailto:MineroHB@xxxxxxxxxxxxx]
Sent: Friday, January 24, 2003 9:09 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: batch file help



This looks pretty good, I'll give it a try.
Thanks,

_________________________________
Hector Minero
NSWCDD Code K55
Ph: (540)653-8859
Fax:(540)653-8575


-----Original Message-----
From: Swinford, Chris [mailto:Chris.Swinford@xxxxxxxxxxx]
Sent: Friday, January 24, 2003 10:26 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: batch file help



:: From =
http://support.microsoft.com/default.aspx?scid=3Dkb;en-us;q318689

:: You can add labels for 95 and 98 and change the goto statements
appropriately

@ECHO off
SETLOCAL=20

VER | find "NT" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "2000" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "XP" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "98" > nul
IF not errorlevel 1 GOTO Win_9X

VER | find "95" > nul
IF not errorlevel 1 GOTO Win_9X

GOTO unknown_os

:win_NT
call kix32.exe myscript.scr
goto end

:win_9X
%0\..\kix.exe %0\..\kix32.exe myscript.scr
goto end

:unknown_os=20
:end=20




-----Original Message-----
From: David Demers [mailto:david.demers@xxxxxxxxxxxxxxx]
Sent: Friday, January 24, 2003 10:12 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: batch file help



The system variable "OS" is valid in Win 20000. I don't have a 95 or 98 =
=3D
handy to test it out on.
To test it in a .bat file use IF %os%=3D3D"Windows_NT" etc...

HTH
David

-----Original Message-----
From: Minero Hector B DLVA [mailto:MineroHB@xxxxxxxxxxxxx]
Sent: Friday, January 24, 2003 8:04 AM
To: Thin (E-mail)
Subject: [THIN] batch file help



Hi all,
Is there a way a can check for Windows version in a batch file.  Mainly, =
=3D
I
need to differentiate between
Windows 95 and Windows 98.

Thanks,

_________________________________
Hector Minero
NSWCDD Code K55
Ph: (540)653-8859
Fax:(540)653-8575

********************************************************************
This Week's Sponsor: RTO Software - TScale
TScale increases Terminal Server capacity. Get 30-40% more users per
server to save $$$ and time. Add users now! - Not more servers.
If you're using Citrix, you must learn about TScale! =3D20
Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=3D3D79
*********************************************************************

For Archives, to Unsubscribe, Subscribe or=3D20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************************
This Week's Sponsor: RTO Software - TScale
TScale increases Terminal Server capacity. Get 30-40% more users per
server to save $$$ and time. Add users now! - Not more servers.
If you're using Citrix, you must learn about TScale! =20
Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=3D79
*********************************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************************
This Week's Sponsor: RTO Software - TScale
TScale increases Terminal Server capacity. Get 30-40% more users per
server to save $$$ and time. Add users now! - Not more servers.
If you're using Citrix, you must learn about TScale! =20
Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=3D79
*********************************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************************
This Week's Sponsor: RTO Software - TScale
TScale increases Terminal Server capacity. Get 30-40% more users per
server to save $$$ and time. Add users now! - Not more servers.
If you're using Citrix, you must learn about TScale! =20
Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=3D79
*********************************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm
********************************************************************
This Week's Sponsor: RTO Software - TScale
TScale increases Terminal Server capacity. Get 30-40% more users per
server to save $$$ and time. Add users now! - Not more servers.
If you?re using Citrix, you must learn about TScale!  
Free 30-day eval: http://www.rtosoft.com/Enter.asp?ID=79
*********************************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: