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