echo>exit.txt exit
echo>assign.txt select disk 0
echo>>assign.txt list partition
diskpart -s assign.txt
del assign.txt
echo PILIH PARTISI
choice /C:12345 /N
if %errorlevel%==5 diskpart -s exit.txt & set "PART=4" & goto :EFI
if %errorlevel%==4 diskpart -s exit.txt & set "PART=3" & goto :EFI
if %errorlevel%==3 diskpart -s exit.txt & set "PART=2" & goto :EFI
if %errorlevel%==2 diskpart -s exit.txt & set "PART=1" & goto :EFI
if %errorlevel%==1 diskpart -s exit.txt & set "PART=0" & goto :EFI
:EFI
del exit.txt
echo>EFI.txt select disk 0
echo>>EFI.txt select partition %PART%
echo>>EFI.txt set id=c12a7328-f81f-11d2-ba4b-00a0c93ec93b
diskpart -s EFI.txt
EFI System Partition (ESP):
c12a7328-f81f-11d2-ba4b-00a0c93ec93b
Basic Data / Primary Partition:
ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
Microsoft Reserved (MSR):
e3c9e316-0b5c-4db8-817d-f92df00215ae
Recovery Partition:
de94bba4-06d1-4d40-a16a-bfd50179d6ac