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