Use -

for /f "tokens=3 delims=.]" %%v in ('ver') do set OSbuild=%%v

Place the syntax above within a shell script to set the OSbuild variable to,
well, the OS build :)

HTH

Dean

--
Dean Wells
MSEtechnology
* Tel: +1 (954) 501-4307
* Email: [EMAIL PROTECTED]
http://msetechnology.com



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Graham Turner
Sent: Thursday, August 14, 2003 8:09 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] os version


i know this one has probably been done about 500 times already, but was
hoping to sound the mailing list out on techniques of differentiating
between Windows 2000 / NT4 from login script, given that both Windows 2000
and NT4 return "Windows NT" from a query of the "OS Version" environment
variable

GT


List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/



List info   : http://www.activedir.org/mail_list.htm
List FAQ    : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to