废话不多说直接上代码:
@COLOR A
@TITLE= 〓〓〓 Hot_VC 〓〓〓
@ECHO OFF
ver|find /i "5.1" && goto :xp
ver|find /i "6.1" && goto :win7
:xp
echo xp-------
GOTO :exit
:win7
echo win7----------
GOTO :exit
:exit
pause
复制到BAT文件执行便可
废话不多说直接上代码:
@COLOR A
@TITLE= 〓〓〓 Hot_VC 〓〓〓
@ECHO OFF
ver|find /i "5.1" && goto :xp
ver|find /i "6.1" && goto :win7
:xp
echo xp-------
GOTO :exit
:win7
echo win7----------
GOTO :exit
:exit
pause