Advertisement
Guest User

Untitled

a guest
Apr 25th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. @ECHO OFF
  2. SET /P CLIENT=Please enter the client name/client share:
  3. IF "%CLIENT%"=="" GOTO Error
  4.  
  5. @ECHO OFF
  6. SET /P SHARE=Please enter the folder share name:
  7. IF "%SHARE%"=="" GOTO Error
  8.  
  9. @ECHO OFF
  10. SET /P USER=Please enter the username for the cloud share:
  11. IF "%USER%"=="" GOTO Error
  12.  
  13. @ECHO OFF
  14. SET /P PW=Please enter the user's password:
  15. IF "%PW%"=="" GOTO Error
  16.  
  17. @ECHO OFF
  18. SET /P DRIVE1=Please enter the letter of the first network drive:
  19. IF "%DRIVE1%"=="" GOTO Error
  20.  
  21. net use %DRIVE1%: \\EUROPA\%client%\%SHARE% /user:%USER% %PW% /persistent:yes
  22.  
  23. pause
  24.  
  25. :Error
  26. ECHO You did not enter a drive letter - closing connection.
  27. :End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement