Guest User

Untitled

a guest
Dec 15th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. :: HOW-TO ::
  2. :: Copy this file to any directory in your computer
  3. :: Adjust drive letter (dletter) and drive path (dpath)
  4. :: Create a shortcut to the file
  5. :: Change the run mode to minimized in shortcut properties
  6. :: If you want to execute in on start: copy it to "shell:startup" (WIN+R)
  7.  
  8.  
  9. :: Set the drive-letter and drive-path
  10. SET dletter=Z:
  11. SET dpath=\\192.168.1.1\dkohler
  12.  
  13.  
  14. :connect
  15.  
  16. :: wait 15 seconds and try to connect
  17. timeout /t 15
  18. net use %dletter% %dpath%
  19.  
  20. :: if the drive is not connected, jump back to :connect
  21. dir %dletter% || goto connect
Add Comment
Please, Sign In to add comment