Administrators Jon Posted July 21, 2004 Administrators Posted July 21, 2004 I got a DriveMap/UnMap function working - nice and easy to implement an people are always asking for it: DriveMap( "drive", "remote folder" [, "user" [, "password"]] ) Should I add a "persistant" parameter or create a "DriveMapPersistant" AutoitSetOption instead (might be easier)?
Chris_1013 Posted July 21, 2004 Posted July 21, 2004 Wow, I've been searching for a way to implement this (through calls to Rundll or something) without luck, and you just go and do it! I'd say, add it as a parameter on the function would be my personal preference, since you may want it on or off for different scenarios.
Developers Jos Posted July 21, 2004 Developers Posted July 21, 2004 (edited) Should I add a "persistant" parameter or create a "DriveMapPersistant" AutoitSetOption instead (might be easier)?Nice... I would prefer to have the Persistant as a parameter on the command ... , more or less like the Net Use command... Edited July 21, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
CyberSlug Posted July 21, 2004 Posted July 21, 2004 I would prefer to have the Persistant as a parameter on the command ... , more or less like the Net Use coomand...Agree Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Chris_1013 Posted July 21, 2004 Posted July 21, 2004 I don't think there is any difference, it'd just be nice to have it as a built in function in AU, rather than having to shell out to DOS and trap the error to check it worked.
Developers Jos Posted July 21, 2004 Developers Posted July 21, 2004 internal versus external... like a bunch of functions.. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
jpm Posted July 21, 2004 Posted July 21, 2004 I prefer the persistant as a parameter of the command too
Holger Posted July 21, 2004 Posted July 21, 2004 hihihi, I was to slowly.I write at the middly of june 3 functions for me:NetAddCon,NetDelCon,NetGetCon,Ok, they are right now in 'my' Autoit3, but I also like to have a 'public' function Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
ezzetabi Posted July 22, 2004 Posted July 22, 2004 internal versus external... like a bunch of functions.. Ah... Ok. Just it seemed that there were something new I didnt understand.Thanks
Administrators Jon Posted July 22, 2004 Author Administrators Posted July 22, 2004 In a few hours when I get home to broadband land and can upload it. I need to add extended error codes too. ###Function### DriveMapAdd ###Description### Maps a network drive. ###Syntax### DriveMapAdd( "drive", "remote folder" [, flags [, "user" [, "password"]]] ) ###Parameters### drive The drive letter to map, for example "O:" or "Z:". If you pass a blank string for this parameter a connection is made but not mapped to a specific drive. remote folder The remote folder to connect to in the form "\\server\share". flags [optional] A combination of the following: 0 = default 1 = Persistant mapping 8 = Show authentication dialog if required user [optional] The username to use to connect. In the form "username" or "domain\usersname". password [optional] The password to use to connect.
Chris_1013 Posted July 22, 2004 Posted July 22, 2004 Sounds good, being without Broadband is always a bitch :-)Couple of questions... At the top of the post you mention UnMap, will there be a seperate function to do this?Also, I don't quite understand this:If you pass a blank string for this parameter a connection is made but not mapped to a specific drive.
SlimShady Posted July 22, 2004 Posted July 22, 2004 Tip: Use a blank string to disconnect/UnMap a networkdrive.
Administrators Jon Posted July 22, 2004 Author Administrators Posted July 22, 2004 Sounds good, being without Broadband is always a bitch :-)Couple of questions... At the top of the post you mention UnMap, will there be a seperate function to do this?Also, I don't quite understand this:You can make a connection that has no drive letter. Like doing "net use \\server\share". It can be useful in certain cirmcumstances. There is a DriveMapDel as well. And possibly a DriveMapGet later on.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now