Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :: incondicionalCmd01.cmd
- :: angeldp
- REM Ejemplo del uso de goto
- REM Si la variable NOMBRE es igual a Pepe
- REM el script continuará a partir de la etiqueta :pepe
- if %NOMBRE%==Pepe goto pepe
- echo Tú no eres Pepe
- goto:eof
- REM La etiqueta eof no hace falta incluirla en el script,
- REM indica el final del fichero (End Of File)
- :pepe
- echo Tú si que eres Pepe
- goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement