From 34b2853b2aa5e06c8f82c42f2d24ab15dbb6b1d5 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Fri, 26 Aug 2022 11:26:25 +0200 Subject: [PATCH] added convert to mbr --- 04_FormatStick.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/04_FormatStick.cmd b/04_FormatStick.cmd index a95c614..3e31476 100644 --- a/04_FormatStick.cmd +++ b/04_FormatStick.cmd @@ -66,6 +66,7 @@ rem ===== > %DPARTSCRIPT% ( @echo.select disk %DISK% @echo.clean + @echo.convert MBR @echo.create partition primary @echo.select partition 1 @echo.format fs=exfat LABEL="%LABEL%" quick @@ -74,7 +75,7 @@ rem ===== @echo. ) -diskpart /s %DPARTSCRIPT% 1>nul 2>nul +diskpart /s %DPARTSCRIPT% if %ERRORLEVEL% NEQ 0 ( echo ERROR: while formatting the disk! del /F %DPARTSCRIPT% 1>nul 2>nul