.
This commit is contained in:
parent
34b2853b2a
commit
a0bce5123b
@ -39,6 +39,24 @@ set DISK=
|
||||
goto askdisk
|
||||
:CONT1
|
||||
|
||||
set FS=
|
||||
:askfs
|
||||
set /p FS="Please select filesystem (exfat or fat32) [exfat]: "
|
||||
if /i "%FS%" EQU "fat32" (
|
||||
GOTO CONT2
|
||||
)
|
||||
if /i "%FS%" EQU "exfat" (
|
||||
GOTO CONT2
|
||||
)
|
||||
if /i "%FS%" EQU "" (
|
||||
set FS=exfat
|
||||
GOTO CONT2
|
||||
)
|
||||
echo Please enter "exfat" or "fat32".
|
||||
goto askfs
|
||||
:CONT2
|
||||
echo selected: %FS%
|
||||
|
||||
set LABEL=
|
||||
set /p LABEL="Please enter a label for the new disk: "
|
||||
|
||||
@ -48,7 +66,7 @@ set answer=
|
||||
:askyes
|
||||
set /p answer="REALLY delete disk %DISK% (Y/N)? "
|
||||
if /i "%answer:~,1%" EQU "Y" (
|
||||
GOTO CONT2
|
||||
GOTO CONT3
|
||||
)
|
||||
if /i "%answer:~,1%" EQU "N" (
|
||||
echo ABORT.
|
||||
@ -57,7 +75,7 @@ set answer=
|
||||
)
|
||||
echo Please type Y or N.
|
||||
goto askyes
|
||||
:CONT2
|
||||
:CONT3
|
||||
|
||||
rem =====
|
||||
rem MAIN
|
||||
@ -69,7 +87,7 @@ rem =====
|
||||
@echo.convert MBR
|
||||
@echo.create partition primary
|
||||
@echo.select partition 1
|
||||
@echo.format fs=exfat LABEL="%LABEL%" quick
|
||||
@echo.format fs="%FS%" LABEL="%LABEL%" quick
|
||||
@echo.active
|
||||
@echo.exit
|
||||
@echo.
|
||||
|
Loading…
Reference in New Issue
Block a user