Check OS version and variable for Network Label
问题 I've been using this code successfully however, looking to adjust it and use when performing netsh commands to rename NIC's - although whilst writing this i'm not sure it's the best route anymore. SET _OSVer=OTHER FOR /F "Tokens=2 Delims=[]" %%a IN ('VER') DO SET _VerNo=%%a FOR /F "Tokens=2-3 Delims=. " %%b IN ("%_VerNo%") DO ( IF "%%b.%%c" EQU "5.2" SET _OSVer=2003 IF "%%b.%%c" EQU "6.0" SET _OSVer=2008 IF "%%b.%%c" EQU "6.1" SET _OSVer=2008R2 IF "%%b.%%c" EQU "6.2" SET _OSVer=2012 IF "%%b.%