Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: HOW-TO ::
- :: Copy this file to any directory in your computer
- :: Adjust drive letter (dletter) and drive path (dpath)
- :: Create a shortcut to the file
- :: Change the run mode to minimized in shortcut properties
- :: If you want to execute in on start: copy it to "shell:startup" (WIN+R)
- :: Set the drive-letter and drive-path
- SET dletter=Z:
- SET dpath=\\192.168.1.1\dkohler
- :connect
- :: wait 15 seconds and try to connect
- timeout /t 15
- net use %dletter% %dpath%
- :: if the drive is not connected, jump back to :connect
- dir %dletter% || goto connect
Add Comment
Please, Sign In to add comment