Skip navigation

JSI Tip 3032. Am I logged onto Windows NT or Windows 2000?


In tip 1826 and links, we can determine what type of Windows NT or Windows 2000 you are logged onto.

If you are looking for a simple script snipit, try:


if /i NOT "%OS%"=="Windows_NT" goto W9x
Ver|Find /i "Windows NT">NUL
If ErrorLevel 1 GoTo W2K
REM Windows NT here
goto continue
:W2K
REM Windows 2000 here
GoTo continue
:w9x
REM Not WinNT or W2K
:continue

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish