|
5/9/2009 4:00:07 PM
Techie_4Life
Techie_4Life
Posts 5
First off I would like to say thank you for this program. I am liking it so far and I look forward to providing hopefully valuable feed back in the advancement of this application. To start off I would like to ask for an unmap feature.

Basically what I'm thinking is something similar the check box provided to map default printers. Instead the script would check to see if the obj. was a member and if it is add the drive if not it removes it. The script would read something like this I believe:

IF IsMember("ADMINS") THEN
MapDrive "S:", "\\svr\swlib$"
ELSE RemoveDrive "S:"
END IF

Function RemoveDrive(Byval Drive)

If objFSO.DriveExists(Drive) Then
objNetwork.RemoveNetworkDrive Drive
End If

End Function

The other functions needed for this to work are omitted and just the additions to the code have been pasted in. I've tested this and it works flawlessly. Now to just add it into the program so I don't have to manually edit it ^^_.

P.S. Maybe even having this feature for printers as well would be nice.
edited by Techie_4Life on 5/9/2009
edited by Techie_4Life on 5/11/2009
pages: 1
|