- @echo off
- for /f "skip=4 tokens=3" %%i in ('reg query "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v Version') do set IEVer=%%i
- for /f "skip=1 delims=" %%i in ('wmic os get description') do set WinVer=%%i
- set /p choice=请选择(1.导出 2.导入):
- if "%choice%"=="1" (
- REGEDIT /E "%WinVer%-%IEVer%.reg" "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer"
- if exist "%WinVer%-%IEVer%.reg" (
- echo 导出成功!
- ) else echo 导出失败!
- ) else if "%choice%"=="2" (
- if not exist "%WinVer%-%IEVer%.reg" (
- echo 没有符合当前操作系统与IE版本的数据!
- pause>nul&exit
- ) else REGEDIT /S "%WinVer%-%IEVer%.reg"
- echo 导入完毕!
- )
- pause>nul
复制代码 符合要求吗? |