支持重装到 windows

This commit is contained in:
bin456789
2023-05-25 20:15:12 +08:00
parent 306252349e
commit a6be7587a3
5 changed files with 360 additions and 54 deletions

2
resize.bat Normal file
View File

@ -0,0 +1,2 @@
for /f "tokens=2" %%a in ('echo list vol ^| diskpart ^| findstr /i "installer"') do (echo select disk 0 & echo select vol %%a & echo delete partition) | diskpart
for /f "tokens=2" %%a in ('echo list vol ^| diskpart ^| findstr "\<C\>"') do (echo select disk 0 & echo select vol %%a & echo extend) | diskpart