Hello, expert:
I'll skip the polite talk. I have a question for you and hope to get your answer.
I made a boot disk (USB flash drive), and I want to make a batch file in it. After this batch file runs, a selection menu appears; after choosing the corresponding item, it executes the corresponding program. How should I write it?
Appendix
@echo off
path=%RAMD%:\;a:\;%CDROM%:\
cls
echo 1 dm
echo 2 diskgen
echo 0 quit
echo Please choose
choice/c
IF ERRORLEVEL 0 goto QUIT
IF ERRORLEVEL 1 goto 1
IF ERRORLEVEL 2 goto 2
goto QUIT
================It always gives an error here.
:1
path=a:\DM\
a:\DM\DM.com
goto QUIT
:2
path=a:\diskgen\
a:\diskgen\diskgen.exe
goto QUIT
:QUIT
echo.
I'll skip the polite talk. I have a question for you and hope to get your answer.
I made a boot disk (USB flash drive), and I want to make a batch file in it. After this batch file runs, a selection menu appears; after choosing the corresponding item, it executes the corresponding program. How should I write it?
Appendix
@echo off
path=%RAMD%:\;a:\;%CDROM%:\
cls
echo 1 dm
echo 2 diskgen
echo 0 quit
echo Please choose
choice/c
IF ERRORLEVEL 0 goto QUIT
IF ERRORLEVEL 1 goto 1
IF ERRORLEVEL 2 goto 2
goto QUIT
================It always gives an error here.
:1
path=a:\DM\
a:\DM\DM.com
goto QUIT
:2
path=a:\diskgen\
a:\diskgen\diskgen.exe
goto QUIT
:QUIT
echo.

