Take a look:
@echo off
cls
:menu
cls
echo.
echo -------------------- Startup Disk Menu --------------------
echo.
echo Backup System ---- Press B key
echo.
echo Restore System ---- Press R key
echo.
echo Enter DOS ---- Press X key
echo.
echo -------------- lhteee Thanks for Using lhteee --------------
echo.
echo.
echo Please choose......
choice /c:xrb >nul
if errorlevel 3 goto backup
if errorlevel 2 goto restore
if errorlevel 1 goto end
:backup
cls
echo.
echo ------------------------------------------------------------------
echo The default name of the system partition image to be backed up is: LHTNET.GHO,
echo.
echo If there is a file with the same name in the partition, please select another partition or rename the existing file.
echo.
echo Please enter the drive letter (D, E, F, G, H) of the hard disk partition to back up to
echo.
echo Press Z to return to the menu......
echo ------------------------------------------------------------------
echo.
choice /c:defghz >nul
if errorlevel 6 goto menu
if errorlevel 5 goto h
if errorlevel 4 goto g
if errorlevel 3 goto f
if errorlevel 2 goto e
if errorlevel 1 goto d
:d
call d.bat
:e
call e.bat
:f
call f.bat
:g
call g.bat
:h
call h.bat
:restore
cls
echo ------------------------------------------------------------------
echo If you perform the restore operation, all data on the existing system disk will be lost,
echo.
echo Do you really want to perform it? ? ?
echo.
echo Press Y key to execute, press N key to return
echo ------------------------------------------------------------------
echo.
choice >nul
if errorlevel 2 goto menu
cls
echo.
echo.
echo.
echo Please enter the drive letter number of the hard disk partition where the system image named "LHTNET.GHO" is located
echo ------------------------------------------------------------------
echo Input Method
echo ------------------------------------------------------------------
echo Press number key "1" for drive D Press number key "2" for drive E Press number key "3" for drive F
echo.
echo Press number key "4" for drive G Press number key "5" for drive H
echo ------------------------------------------------------------------
echo Press number key "6" to return to the menu
echo ------------------------------------------------------------------
echo.
choice /c:123456 >nul
if errorlevel 6 goto menu
if errorlevel 5 goto hp
if errorlevel 4 goto gp
if errorlevel 3 goto fp
if errorlevel 2 goto ep
if errorlevel 1 goto dp
:dp
call dp.bat
:ep
call ep.bat
:fp
call fp.bat
:gp
call gp.bat
:hp
call hp.bat
:end
cls
echo ------------------------------------------------------------------
echo.
echo 1、You can enter "onekey" below and press Enter to operate manually. Be sure to distinguish between hard disks and partitions.
echo.
echo 2、You can also change the name of the image to be restored to "LHTNET.GHO" and then restore it automatically.
echo.
echo ------------------------------------------------------------------
echo DOS Command Menu
echo ------------------------------------------------------------------
echo XFMBR Repair MBR JHFQ Activate Partition CKCP View Disk
echo.
echo ATTRIB Change Attribute F32 Quick Partition NTFS Partition Read and Write
echo.
echo Res Restart M Return to Menu Off Shutdown
echo ------------------------------------------------------------------
echo.
a:\
欢迎光临蜗牛软园:http://lhteee.ys168.com
欢迎光临 Ghost家:http://lhtooo.ys168.com
电子信箱(Email):lhteee@163.com
电子信箱(Email):lhteee@gmail.com