Request: not to disconnect network drives before mapping / Feature Requests / NetSetMan Support

NetSetMan Support

Search for already answered questions about NetSetMan (Pro) or ask new ones

You are not logged in.

#1 2011-07-31 17:25

CP44
Member
Registered: 2011-07-31
Posts: 3

Request: not to disconnect network drives before mapping

Would it be possible to have a checkbox in the "Net Drive"/"Map Network Drive" settings marked "Do not disconnect other drives"?  ... Or perhaps a global setting... "Tools: Preferences: General (tree object): Miscellaneous (group): "Do not disconnect unlisted network drives"?

I have seen other discussions about this topic on the forum, mostly that it either does or does not work, but I am thinking there are certain drives that would be best left untouched.

In my case, I would like to have a couple drives mapped even though their target computer may not be available when I switch profiles.  Switching away would unmap the drives; switching back to the first profile would not map them again because they're "unavailable".

I considered implementing "net use" scripts in "Script: After (tab)", but again... the drive would not be remapped if unavailable, and the batch files would not be encrypted like the settings.ini file.

--John/CP44

Offline

#2 2011-08-08 23:29

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Request: not to disconnect network drives before mapping

NetSetMan only disconnects those network drives that are not in the list of the profile that is applied. Those mapped network drives that have the same drive letter and network path as in the list of the profile to be applied will remain untouched. So if you want some drives not to be unmapped, add them to the second profile as well.

Offline

#3 2011-08-13 02:06

CP44
Member
Registered: 2011-07-31
Posts: 3

Re: Request: not to disconnect network drives before mapping

In my case, I have a drive that links to various destinations depending on which subnet another computer is on.  If I take my computer somewhere where other shared drives should exist and switch profiles to match, that seems fine... but if I return and activate the home profile while the other computer is off or configured differently, that home share will not be created because the other computer would not respond at the original path.

(You could I tell me to change the home profile before activating it, but NetSetMan would still remove the drive when I switch networks unless I ALWAYS update a profile I am about to switch to with the current information for drive letters I want to keep AND make sure all targets are online and functioning.  That amount of work makes me more likely to script drive letters on my own and ignore this feature.)

--John/CP44

Last edited by CP44 (2011-08-13 02:08)

Offline

#4 2011-08-17 21:31

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Request: not to disconnect network drives before mapping

CP44 wrote:

... AND make sure all targets are online and functioning.

That's actually not quite correct. If a network drive is already mounted and you activate a profile with the same network drive configuration NetSetMan won't check for it's availability. It will simply be skipped.

Example:
This profile is activated:
Profile 1:
-> x:, \\alice
-> y:, \\bob
-> z:, \\carol

Then this profile is activated:
Profile 2:
-> k:, \\dave
-> x:, \\alice
What now happens is:
- y: and z: get unmounted and k: is mounted
- Nothing happens to x:! Its availability won't be checked, it will simply be skipped.

Offline

#5 2012-12-07 00:34

Kugelblitz
Member
Registered: 2012-12-07
Posts: 6

Re: Request: not to disconnect network drives before mapping

lanandwebdav.jpg


Hello,

So what if I want x: to be unmounted and mounted again if the profile switches?



I wrote a tutorial here  featuring NetSetMan to mount a NAS through LAN if you are in the office and through WebDAV if you are out of the office.
See section D.) Setup NetSetMan

So people can access the same files on the same Drive letter and path no matter where they are.

Thing is as you said NetSetMan does not unmount Drive letters that are mounted already.


I want NetSetMan to unmount and mount exactly the same Drive letters that are mounted already. How can this be done?

Offline

#6 2012-12-08 15:04

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: Request: not to disconnect network drives before mapping

NetSetMan actually checks for both the drive letter and the path. The mapping is only left untouched if both are the same.

Offline