mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
2 lines
307 B
Batchfile
2 lines
307 B
Batchfile
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 |