Guest User

Untitled

a guest
Mar 5th, 2018
140
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. :start
  4. echo.
  5. echo 1. Map Drives
  6. echo 2. Disconnect Drives
  7. echo.
  8. set /p x=Choose:
  9. IF '%x%' == '%x%' GOTO Item_%x%
  10.  
  11. :Item_1
  12.  
  13. echo.
  14. net use G: /d >NUL
  15. net use J: /d >NUL
  16. editv32 -p "Enter the Username: " User
  17. editv32 -m -p "Enter the password: " PassWord
  18.  
  19. net use G: "\\ashfsc03\users\%User%" %PassWord% /USER:CAMBRIDGE\%User% >NUL
  20. net use J: "\\ashfsc01\Cambridge" %PassWord% /USER:CAMBRIDGE\%User% >NUL
  21. exit
  22.  
  23. :Item_2
  24.  
  25. net use G: /d >NUL
  26. net use J: /d >NUL
Add Comment
Please, Sign In to add comment