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.
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
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
Add your comment