Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF %OS% == "windows NT"

Status
Not open for further replies.

ssphoenix

IS-IT--Management
Jan 22, 2001
306
US
I've been trying to setup the login script but found mixed info that does not work. I found:

IF "%OS%"=="Windows NT" goto NT4

IF %OS%=="Windows NT goto NT4

IF '%os%'=='Windows_NT' goto nt4


how is the proper syntax?

Thanks
 
if %OS% == "Windows_NT" goto NT4

An easy way to determine what values are used for the environment variables, shell out to a command prompt and run "set". This will list the variables and their assigned values.

You can also view this info by right clicking on My Computer and got to Properties then Environment.

Doug
dxd_2000@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top