Bat em DOS
Confirma opções:
:inicio @choice /c:sn - Confirme e digite if errorlevel 2 goto fim xxxxxxxx :fim if not exist %1.exe goto erro
Gerenciador de operações (menu):
:tela-opcoes echo +-----------------------------------------------------------------------------+ echo | GERENCIADOR DE OPERACOES GERENCIADOR DE | echo | ------------------------ OPERACOES | echo | | echo | +----+ +----+ | echo | | F1 | | F6 | | echo | +----+ ---------------------------- +----+ ---------------------------- | echo | | echo | +----+ +----+ | echo | | F2 | | F7 | | echo | +----+ ---------------------------- +----+ ---------------------------- | echo | | echo | +----+ +----+ | echo | | F3 | | F8 | | echo | +----+ ---------------------------- +----+ ---------------------------- | echo | | echo | +----+ +----+ | echo | | F4 | | F9 | | echo | +----+ ---------------------------- +----+ ---------------------------- | echo | | echo | +----+ +----+ | echo | | F5 | | F10| | echo | +----+ ---------------------------- +----+ ---------------------------- | echo +-----------------------------------------------------------------------------+ :opcoes reply if errorlevel 68 goto opcao-f10 if errorlevel 67 goto opcao-f9 if errorlevel 66 goto opcao-f8 if errorlevel 65 goto opcao-f7 if errorlevel 64 goto opcao-f6 if errorlevel 63 goto opcao-f5 if errorlevel 62 goto opcao-f4 if errorlevel 61 goto opcao-f3 if errorlevel 60 goto opcao-f2 if errorlevel 59 goto opcao-f1 goto opcoes