Jump to content
Sign in to follow this  
dmoniac

Mount / Remount network drive automatically

Recommended Posts

dmoniac

Subject

Mount network drive

Goal

Do automatically mounting network drive and retrying if the hist is not avaible.

Why

I use this whith my Media Center.

Media Center start and my program mount automatically drive when they avaible. Not need to return windows to mount/remount manualy.

Install

Create a INI file which contains all drive to mounting.

Put this INI file to program' parameter

INI file Config

[GLOBAL]
checkevery=<number of seconde to check connections>
remount=[1:reconnection|0(default):no check the next state of connection]
umountfirst=[1:For the init program, force umount drive, 0(defaut):Keep drive if letter already exists]

[<mount name1>]
host=<hostname|ip>
dir=<directory to mount>
driveletter=<drive:>
user=[user]
pass=[password|*:to ask password]
remount=[1|0]
umountfirst=[1|0]

[<mount name other>]
host=<hostname|ip>
dir=<directory to mount>
driveletter=<drive:>
user=[user]
pass=[password|*:to ask password]
remount=[1|0]
umountfirst=[1|0]

[...]

Source Code

See attach files.

History

V120 : Add option to ask the user password; Correct bug dismount drive

V110 : Add 'umountfirst' option to force the umount drive letter when you run program for the 1st

V100 : initial program

Download

V110 : 9

V100 : 26

Voilà, j'espère que ça servira à quelqu'un. ;)

icone.ico

autoconnexion_reseau.au3

Edited by dmoniac

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.