- @echo off
- for /f "skip=2 delims=" %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer" /v Version') do set a=%%i
- set b=%a:~-13%
- echo %b%
- if "%b%"=="1" goto xpIE6
- if "%b%"=="2" goto XPIE7
- if "%b%"=="3" goto VISTA
- if "%b%"=="4" goto kjfsxp
- if "%b%"=="5" goto kjfsvista
- if "%b%"=="6" goto office
- if "%b%"=="7" goto dycj
- if "%b%"=="q" goto quit
- pause
复制代码
|