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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Variables

Status
Not open for further replies.

Bremmerz

MIS
Apr 10, 2002
72
0
0
GB
Hi,

I'm creating a .bat file for some tasks I want to automate and I need to create a ;NT4.0 section and a ;Win2k section.

Does anyone know of an environment variable I can use to distinguish between NT and 2k?

The %OS% variable for both NT and 2k is 'Windows_NT', which isn't too helpful!!! ;)

TIA,

Kris

If someone annoys you, walk a mile in their shoes. That way you'll be a mile away from them, and you'll have their shoes :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top