mount_drives.vbs

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.
@ECHO OFF
REM comment
net use m: /DELETE
net use m: \\192.168.1.210\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.

Downloads:
mount_drives-02Aug2010-web.zip

 


Name:
e-mail:
(will not be posted but I may reply)
subject:


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