1139054012 当前离线
一级士官
评分人数
pcl_test 当前离线
荣誉版主
@echo off ver|find "6.1." >nul&&(set "v=Win7"&goto end) ver|find "6.2." >nul&&(set "v=Win8"&goto end) exit :end if /i "%PROCESSOR_IDENTIFIER:~0,3%" == "X86" (regedit /s "%v%x32位.reg") else (regedit /s "%v%x64位.reg") del *.reg pause复制代码
TOP
/zhqsystem/zhq 当前离线
中尉
wikou 当前离线
列兵
DAIC 当前离线
中将
@echo off ver|find "6.1">nul&&if exist "%systemroot%\syswow64" ( regedit /s "Win7x64位.reg" ) else ( regedit /s "Win7x32位.reg" ) ver|find "6.2">nul&&if exist "%systemroot%\syswow64" ( regedit /s "Win8x64位.reg" ) else ( regedit /s "Win8x32位.reg" ) pause复制代码
Windows 10预览版 前期6.4 近期10.0 Windows 8.1 6.3 Windows 8 6.2 Windows 7 6.1 Windows Vista 6.0 Windows XP 5.1复制代码
@echo off SET renchongyi=%CD% SET renchongyi=%renchongyi:\=\\% echo 请输入你要选择执行的动作,输入n则退出程序... set /p n=输入你的选择内容:1:win7x32 、2:win7x64 、3:win8x32 、4 Win8x64 if "%n%"=="" cls&goto :caozuo if "%n%"=="1" call :win7x32 if "%n%"=="2" call :win7x64 if "%n%"=="3" call :win8x32 if "%n%"=="4" call :Win8x64 ....... if /i "%n%"=="n" exit goto :eof :win7x32 >>"win7x32.reg" ECHO Windows Registry Editor Version 5.00 ....... goto :eof :win7x64 >>":win7x64.reg" ECHO Windows Registry Editor Version 5.00 ....... goto :eof 复制代码
@echo off SET renchongyi=%CD% ver|find "6.1">nul&&if exist "%systemroot%\syswow64" ( call :win7x32 ) else ( call :win7x64 ) ver|find "6.2">nul&&if exist "%systemroot%\syswow64" ( call :win8x32 ) else ( call :Win8x64 ) goto :eof :win7x32 >>"%renchongyi%\win7x32.reg" ECHO Windows Registry Editor Version 5.00 ....... regedit /s "%renchongyi%\win7x32.reg" del /f /q "%renchongyi%\win7x32.reg" goto :eof :win7x64 >>"%renchongyi%\win7x64.reg" ECHO Windows Registry Editor Version 5.00 ....... regedit /s "%renchongyi%\win7x64.reg" del /f /q "%renchongyi%\win7x64.reg" goto :eof :win8x32 >>"%renchongyi%\win8x32.reg" ECHO Windows Registry Editor Version 5.00 ....... regedit /s "%renchongyi%\win8x32.reg" del /f /q "%renchongyi%\win8x32.reg" goto :eof :win8x64 >>"%renchongyi%\win8x64.reg" ECHO Windows Registry Editor Version 5.00 ....... regedit /s "%renchongyi%\win8x64.reg" del /f /q "%renchongyi%\win8x64.reg" goto :eof复制代码
@echo off ::判断系统 ver|find "6.1." >nul&&set "v=win7" ver|find "6.2." >nul&&set "v=win8" ::判断32位or64位 if exist "%systemroot%\syswow64" (set "w=x64") else (set "w=x32") ::进行相应操作 goto %v%%w% 2>nul||echo 未定义的系统&ping -n 2 0 >nul&exit :win7x32 >>"%v%%w%.reg" echo;Windows Registry Editor Version 5.00 ....... goto end :win7x64 >>"%v%%w%.reg" echo;Windows Registry Editor Version 5.00 ....... goto end :win8x32 >>"%v%%w%.reg" echo;Windows Registry Editor Version 5.00 ....... goto end :win8x64 >>"%v%%w%.reg" echo;Windows Registry Editor Version 5.00 ....... goto end :end ::导入 regedit /s "%v%%w%.reg" ::删除 del "%v%%w%.reg" ::退出 ping -n 2 0 >nul&exit复制代码