Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.48 KB | None | 0 0
  1. @echo off
  2. CLS
  3. echo Enter stock number...
  4. set /p devname=
  5. ECHO [1] - New Holland
  6. ECHO [2] - Kobelco
  7. ECHO [3] - JLG
  8. CHOICE /C 123 /M "What is mfg:"
  9.  
  10. :: Note - list ERRORLEVELS in decreasing order
  11. IF ERRORLEVEL 3 GOTO option3
  12. IF ERRORLEVEL 2 GOTO option2
  13. IF ERRORLEVEL 1 GOTO option1
  14.  
  15. :option3
  16. echo|set/p=%devname% is a New Holland|clip
  17. GOTO End
  18.  
  19. :option2
  20. echo|set/p=%devname% is a Kobelco|clip
  21. GOTO End
  22.  
  23. :option1
  24. echo|set/p=%devname% is a JLG|clip
  25. GOTO End
  26.  
  27. :End
  28. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement