Tiny permalink to this page.
This script has been replaced with connect_shares.vbs

mount_drives.vbs is a vbs script to mount hard drives using the Windows API. The script will map network drives in the background without steeling focus and will retry if a connection fails.

It will read in a bat file with "net use" commands and execute them via the Windows API. There are no Windows stealing focus, blink or do anything to annoy the user.
REM comment
net use m: /DELETE
net use m: \\\backup_dir MyPassword /USER:MyUsername /persistent:no

Current limitation:
The current version will try to connect a network drive until it succeeds instead of moving on to the next and trying again later. This may not connect some network drives until the operation times out. I'll update the logic for the next release.



(will not be posted but I may reply)

Image CAPTCHA, please select the image representing a/an: fruit