Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. @echo off
  2. echo.
  3. echo MENU
  4. echo.
  5. //echo Setting <LETTER>: network drive
  6. //net use <LETTER>: "\\SERVER\PATH"
  7. //echo <LETTER>: set, if installers do not open network drive mapping failed probably failed.
  8. echo.
  9. :MENU
  10. echo.
  11. echo 1 or 2, choose your option.
  12. echo .
  13. echo 1 - Option1
  14. echo 2 - Option2
  15. echo 3 - Option3
  16. echo 4 - Option4
  17. echo 5 - EXIT
  18. echo.
  19. SET /P M=Type a number then press ENTER:
  20. IF %M%==1 GOTO OPT1
  21. IF %M%==2 GOTO OPT2
  22. IF %M%==3 GOTO OPT3
  23. IF %M%==4 GOTO OPT4
  24. IF %M%==5 GOTO EOF
  25. :OPT1
  26. "<LETTER>:\Path\Folder\file.exe"
  27. GOTO MENU
  28. :OPT2
  29. "<LETTER>:\Path\Folder\file.exe"
  30. GOTO MENU
  31. :OPT3
  32. "<LETTER>:\Path\Folder\file.exe"
  33. GOTO MENU
  34. :OPT4
  35. net use <LETTER>: "\\SERVER\PATH"
  36. GOTO MENU
  37. :EOF
  38. EXIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement