Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- :start
- echo.
- echo 1. Map Drives
- echo 2. Disconnect Drives
- echo.
- set /p x=Choose:
- IF '%x%' == '%x%' GOTO Item_%x%
- :Item_1
- echo.
- net use G: /d >NUL
- net use J: /d >NUL
- editv32 -p "Enter the Username: " User
- editv32 -m -p "Enter the password: " PassWord
- net use G: "\\ashfsc03\users\%User%" %PassWord% /USER:CAMBRIDGE\%User% >NUL
- net use J: "\\ashfsc01\Cambridge" %PassWord% /USER:CAMBRIDGE\%User% >NUL
- exit
- :Item_2
- net use G: /d >NUL
- net use J: /d >NUL
Add Comment
Please, Sign In to add comment