mirror of
https://github.com/bin456789/reinstall.git
synced 2025-10-05 14:34:53 +00:00
windows: resize 脚本名添加 windows 前缀
This commit is contained in:
3
windows-resize.bat
Normal file
3
windows-resize.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
set C=%SystemDrive:~0,1%
|
||||
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
|
Reference in New Issue
Block a user