Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- :client
- SET /P CLIENT=Please enter the client name/client share:
- IF [%CLIENT%] == [] (
- ECHO "You did not enter the client."
- GOTO client
- )
- :share
- SET /P SHARE=Please enter the folder share name:
- IF [%SHARE%] == [] (
- ECHO "You did not enter the share."
- GOTO share
- )
- :user
- SET /P USER=Please enter the username for the cloud share:
- IF [%USER%] == [] (
- ECHO "You did not enter the user."
- GOTO user
- )
- :pw
- SET /P PW=Please enter the user's password:
- IF [%PW%] == [] (
- ECHO "You did not enter the pw."
- GOTO pw
- )
- :drive1
- SET /P DRIVE1=Please enter the letter of the first network drive:
- IF [%DRIVE1%] == [] (
- ECHO "You did not enter the drive letter."
- GOTO drive1
- )
- net use %DRIVE1%: \\EUROPA\%client%\%SHARE% /user:%USER% %PW% /persistent:yes
- pause
- :End
Add Comment
Please, Sign In to add comment