Advertisement
Guest User

Fehlerhafter bat code

a guest
Nov 9th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. @echo off
  2. color 0a
  3. mode 1000
  4. title
  5.  
  6.  
  7. :Int
  8. set J=[X]
  9. set N=.
  10.  
  11.  
  12.  
  13. :A
  14. cls
  15. echo.
  16. echo.
  17. echo.
  18. echo.
  19. echo.
  20. echo. %J% Yes %J%
  21. echo.
  22. echo. %N% NO %N%
  23. echo.
  24. echo.
  25. echo.
  26. echo.
  27. echo.
  28. echo.
  29. choice /C:WSF /n
  30.  
  31. if errorlevel 255 goto A
  32. if errorlevel 3 goto 3
  33. if errorlevel 2 goto 2
  34. if errorlevel 1 goto 1
  35. if errorlevel 0 goto A
  36.  
  37. :3
  38. if "%J%"=="[X]" goto Jap
  39. if "%N%"=="[X]" goto Nope
  40. goto Ende
  41.  
  42. :2
  43. if "%N%"=="[X]" set N=. && set J=[X] && goto A
  44. if "%J%"=="[X]" set J=. && set N=[X] && goto A
  45. goto A
  46.  
  47. :1
  48. if "%N%"=="[X]" set N=. && set J=[X] && goto A
  49. if "%J%"=="[X]" set J=. && set N=[X] && goto A
  50. goto A
  51.  
  52.  
  53. :Jap
  54. cls
  55. echo hi
  56. pause >Null
  57. goto A
  58.  
  59. :Nope
  60. cls
  61. echo good bye
  62. pause >Null
  63. goto A
  64.  
  65. :Ende
  66. pause >Null
  67. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement