|
- @echo off
- setlocal enabledelayedexpansion
- for /d %%a in (C,D,E,F,G,H,I,J,K,L,M,N,O,P,R,Q,S,T,U,V,W,Y,Z) do (
- if exist %%a:\Windows\System32\Config\SAM (
- set drive=%%a
- echo 原系统盘的盘符是 !drive!: 正确请按回车,错误请手动输入(不带冒号)
- set /p drive=
- )
- )
- echo.
- if not exist %drive%:\Windows\System32\Config\SAM echo 原系统盘盘符错误,请重试!&&pause>nul&&exit
- pushd %drive%:\Windows\System32\Config\
- reg load HKLM\TEMP-SOFTWARE software >nul 2>nul
- reg load HKLM\TEMP-default default >nul 2>nul
- reg query HKLM\TEMP-SOFTWARE\Microsoft\Windows\CurrentVersion\Run
- reg query HKLM\TEMP-default\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
- reg unload HKLM\TEMP-SOFTWARE >nul 2>nul
- reg unload HKLM\TEMP-default >nul 2>nul
- pause>nul
复制代码 |
评分
-
查看全部评分
|