t.koridass Posted March 23, 2005 Share Posted March 23, 2005 in batch u deflect a printer with net use lpt1: \\server\HP4000 can I make it with autoit3 too? with the DriveMapAdd command? Link to comment Share on other sites More sharing options...
nobby Posted March 23, 2005 Share Posted March 23, 2005 Straight from the help file...DriveMapAdd --------------------------------------------------------------------------------Maps a network drive.DriveMapAdd( "device", "remote share" [, flags [, "user" [, "password"]]] ) Parametersdevice The device to map, for example "O:" or "LPT1:". If you pass a blank string for this parameter a connection is made but not mapped to a specific drive. If you specify "*" an unused drive letter will be automatically selected. remote share The remote share to connect to in the form "\\server\share". flags [optional]A combination of the following:0 = default1 = Persistant mapping8 = Show authentication dialog if required user [optional] The username to use to connect. In the form "username" or "domain\username". password [optional] The password to use to connect. CheersNobby Link to comment Share on other sites More sharing options...
t.koridass Posted March 23, 2005 Author Share Posted March 23, 2005 thx I have seen it to late that it work with DriveMapAdd Link to comment Share on other sites More sharing options...
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