Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
November 13, 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 W9xVer|Find /i "Windows NT">NULIf ErrorLevel 1 GoTo W2KREM Windows NT heregoto continue:W2KREM Windows 2000 hereGoTo continue:w9xREM Not WinNT or W2K:continue
You May Also Like