Guest User

Untitled

a guest
Apr 25th, 2016
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2.  
  3. :client
  4. SET /P CLIENT=Please enter the client name/client share:
  5. IF [%CLIENT%] == [] (
  6.   ECHO "You did not enter the client."
  7.   GOTO client
  8. )
  9.  
  10.  
  11. :share
  12. SET /P SHARE=Please enter the folder share name:
  13. IF [%SHARE%] == [] (
  14.   ECHO "You did not enter the share."
  15.   GOTO share
  16. )
  17.  
  18. :user
  19. SET /P USER=Please enter the username for the cloud share:
  20. IF [%USER%] == [] (
  21.   ECHO "You did not enter the user."
  22.   GOTO user
  23. )
  24.  
  25. :pw
  26. SET /P PW=Please enter the user's password:
  27. IF [%PW%] == [] (
  28.   ECHO "You did not enter the pw."
  29.   GOTO pw
  30. )
  31.  
  32. :drive1
  33. SET /P DRIVE1=Please enter the letter of the first network drive:
  34. IF [%DRIVE1%] == [] (
  35.   ECHO "You did not enter the drive letter."
  36.   GOTO drive1
  37. )
  38.  
  39. net use %DRIVE1%: \\EUROPA\%client%\%SHARE%  /user:%USER% %PW% /persistent:yes
  40.  
  41. pause
  42.  
  43. :End
Add Comment
Please, Sign In to add comment