Advertisement
angeldp

incondicionalCmd01.cmd

Jun 4th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.38 KB | None | 0 0
  1. @echo off
  2. :: incondicionalCmd01.cmd
  3. :: angeldp
  4. REM Ejemplo del uso de goto
  5. REM Si la variable NOMBRE es igual a Pepe
  6. REM el script continuará a partir de la etiqueta :pepe
  7. if %NOMBRE%==Pepe goto pepe
  8. echo Tú no eres Pepe
  9. goto:eof
  10. REM La etiqueta eof no hace falta incluirla en el script,
  11. REM indica el final del fichero (End Of File)
  12. :pepe
  13. echo Tú si que eres Pepe
  14. goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement