I think I have what I want (described below), thank you so much again, but please two more options... When I want to add in sub menu two next options for example "B" like go on Begin and "E" like Exit. It will be like:
Hello I am Zedd, please choose one app bellow:
- Notepad
- Calc
- Other
When I touch "3" like other I will get next menu:
- FFox
- IE
- or B. Go Back
- or E. Exit
How can I do this? And can I use just number 0-9 or I can use also 10,11 etc.?
Examople of code maybe like this?
@echo off
:begin
echo.
echo Hello, I'm Zedd...
echo.
echo Choose:
echo.
echo 1. Notepad
echo 2. Calc
echo 3. Other
echo.
choice /c 123
if %errorlevel%==1 goto :Notepad
if %errorlevel%==2 goto :Calc
if %errorlevel%==3 goto :Other
:Notepad
start notepad.exe
goto :eof
:Calc
start calc.exe
goto :eof
:Other
echo.
echo Choose:
echo.
echo 1. FFox
echo 2. IE
echo 3 or B. Back
echo 4 or E. Exit
echo.
choice /c 1234(maybe 12be if I can use also b and e, or I can use 3,4... is possible here use 10,11,12 etc.?)
if %errorlevel%==1 "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
if %errorlevel%==2 "C:\Program Files\Internet Explorer\iexplore.exe"
if %errorlevel%==3 goto :begin?
if %errorlevel%==4 exit?
goto :other (I want to stay in other for choosing next apps but I want to be able to go back or exit)
Also, can I do it with note, so when I choose FFox there will be message "You choosed FFox" etc.?
Hope I described it clearly, if you can help me, I will be happy, thank you!
Could you please advise me on how to write commands in CMD using a batch file that would include different options and actions?
I've researched a nice description of the functions I can use, but I'm not able to put together them functionally.
Here's an example of the output message that I want when my batch file runs on Windows:
I need to do batch, for example "test.bat"
I think this is the easiest way. In this batch I want to have some text and some choices. For example bellow:
Hello, I am Zedd, here is few options for you, please choose one.
1. Run notepad.exe
2. Other apps
After entering number 1, Notepad is opened. After entering number 2, more options should be displayed:
1. Firefox
2. More informations
etc.
I need to run this batch file on Windows.
What is best way how to do this?
It can be full-screen or just within a window.
Also I need open apps or pictures, etc.