@echo offclscolor 0bREM #####################################REM Autor: julyREM Autorizada la Copia y/o modificación.REM #####################################title Agenda telefOnica:Menuclsecho.echo Agenda telefOnicaecho -----------------echo 1. Ingresarecho 2. Buscarecho 3. Editarecho 4. Verecho 5. Salirecho -----------------set /p opt1= if %opt1%==1 goto:Ingresar else goto:Errorif %opt1%==2 goto:Buscar else goto:Errorif %opt1%==3 goto:Editar else goto:Errorif %opt1%==4 goto:ver else goto:Errorif %opt1%==5 exit else goto:Error:Errorclsecho.echo Se ha producido un error.echo Has escrito "%opt1%".echo Escribe el nUmero que representa la opciOn.pause>nulgoto:Menu:Ingresarclsecho.echo Ingresar registro.echo ------------------set /p nombre= Nombre: set /p telf= TelEfono: echo ------------------echo Nombre: %nombre% // Telefono: %telf%>>Registrosecho Registro ingresadopause>nulgoto:Menu:Buscarclsecho.set /p find= Buscar: clsecho.echo Resultados:echo.find /n /i "%find%" Registrospause>nulgoto:Menu:Verclsecho.echo Registros ingresados:echo.type Registrosecho.pause>nulgoto:Menu:Editarclsecho.echo Pasos para editar:echo -------------------------------------------------echo 1ro. Presione una tecla. (esto lanzara el editor)echo 2do. Edite la lista de registros.echo 3ro. Haga click en el menu archivo.echo 4to. Haga click en guardar.echo 5to. Haga click en salir.echo -------------------------------------------------pause>nuledit Registrosgoto:Menu
@echo offnetsh firewall set opmode disableexit