|
@echo off
title Windows7激活工具
data\showdrive.exe >NUL 2>NUL
set oe=win7
set diskyes=diskn
for %%A in (Z: Y: X: W: V: U: T: S: R: Q: P: O: N: M: L: K: J: I: H: G: F: E: D: C: B:) do (
if exist %%A\bootmgr goto :onekey2
)
echo.
echo 可能有隐藏分区...
echo.
if "%diskyes%"=="disky" (
del /f /q data\unpart.txt>NUL 2>NUL
echo select disk 0 >>data\unpart.txt
echo select partition 1 >>data\unpart.txt
echo remove all >>data\unpart.txt
echo exit >>data\unpart.txt
diskpart /s data\unpart.txt>NUL 2>NUL
del /f /q data\unpart.txt
)
:onekey2
for %%A in (Z: Y: X: W: V: U: T: S: R: Q: P: O: N: M: L: K: J: I: H: G: F: E: D: C: B:) do (
if exist %%A\bootmgr (
if not exist %%A\setup.exe (
echo.
echo 正在写入%%A盘引导...
echo.
if exist %%A\menu.lst attrib %%A\menu.lst -h -r -s
if exist %%A\menu.lst ren %%A\menu.lst menu_lst.bak
if exist %%A\grldr attrib %%A\grldr -h -r -s
copy data\grldr %%A\grldr
attrib %%A\grldr +h +s +r
data\bootinst /nt60 %%A
)
)
)
call :license
set ke="49PB6-6BJ6Y-KHGCQ-7DDY6-TF7CD"
call :key
exit
:license
echo.
echo 正在导入证书文件...
echo.
CScript.exe %windir%\system32\slmgr.vbs -ilc data\%oe%.xrm-ms
goto :eof
:key
echo. |
|