From c3cbef6a4720c1d237d169fb8e1d02d5b28af682 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 21 Jun 2023 23:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=B3=BB=E7=BB=9F=E5=8F=98?= =?UTF-8?q?=E9=87=8F=EF=BC=8C=E4=BB=A3=E6=9B=BF=E7=A1=AC=E7=BC=96=E7=A0=81?= =?UTF-8?q?C=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resize.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resize.bat b/resize.bat index d003b6a..51b0847 100644 --- a/resize.bat +++ b/resize.bat @@ -1,2 +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 "\"') do (echo select disk 0 & echo select vol %%a & echo extend) | diskpart \ No newline at end of file +for /f "tokens=2" %%a in ('echo list vol ^| diskpart ^| findstr "\<%C%\>"') do (echo select disk 0 & echo select vol %%a & echo extend) | diskpart \ No newline at end of file