Ok, so i would be appreciate if someone could help me out with this problem. When I use "errorlevel" in this code it doesn't register if the user posted an incorrect value. The program needs to be ran as administrator and i think this is part of the reason, any insights?
echo =====================================================
diskpart/s %temp%\A.txt
if errorlevel 1 goto :error
echo.
echo Select The Disk You Want To Make Bootable.
Set /p Disk=Disk=
echo Disk %Disk% Choosen.
diskpart/s %temp%\B.txt
if errorlevel 1 (
goto :error
) else (
echo Diskpart Has Exited.
goto :ask
)
if you need to see the full script let me know. thank you for your time.
Aucun commentaire:
Enregistrer un commentaire