MatteoGuallini Posted November 13, 2006 Share Posted November 13, 2006 I need to use DriveMapAdd to map two different shares with two different users but i had some errors. I can map the first user and share but i can't map the second receiving @error=1 This is an example code: DriveMapAdd("Z:","\\Snap816625\dir1\share1",0,"user_one","psw1") MsgBox(0,"Title",@error,0); this give @error=0 DriveMapAdd("S:","\\Snap816625\dir2\share2",0,"user_two","psw1") MsgBox(0,"Title",@error,0);this give @error=1 http://www.vigevano-prabis.it/ Link to comment Share on other sites More sharing options...
Bert Posted November 13, 2006 Share Posted November 13, 2006 have you tried using "net use" to do this? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
MatteoGuallini Posted November 13, 2006 Author Share Posted November 13, 2006 Yes I've tryed to use "Net Use" having the same problem. It said that i can't connect two different users in the same time. My OS is Winxp pro sp2. Now i think it is a common restriction of the OS. But it is trange. I know that using BARTPE i can do that. Have you ever had a problem like this? Thanks http://www.vigevano-prabis.it/ Link to comment Share on other sites More sharing options...
Developers Jos Posted November 13, 2006 Developers Share Posted November 13, 2006 (edited) Yes I've tryed to use "Net Use" having the same problem. It said that i can't connect two different users in the same time.My OS is Winxp pro sp2.Now i think it is a common restriction of the OS. But it is trange. I know that using BARTPE i can do that.Have you ever had a problem like this?Thanks Don't think you can connect from one machine with 2 different accounts to a single server....Pretty sure the Error tells you this when doing the Net USE commands ... right ? Edited November 13, 2006 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. Link to comment Share on other sites More sharing options...
steve8tch Posted November 13, 2006 Share Posted November 13, 2006 In my work environment I can get access to the same network resources with 2 different accounts like this: DriveMapAdd("Z:","\\Snap816625\dir1\share1",0,"user_one","psw1") DriveMapAdd("Z:","\\<IP address of Snap816625>\dir2\share2",0,"user_two","psw2") Its slightly odd and I am not too sure why this does work but it seems to. Link to comment Share on other sites More sharing options...
MatteoGuallini Posted November 13, 2006 Author Share Posted November 13, 2006 Yes! This is the meaning of the NetUse message. The only thing now is to find a way for simulate another computername. If you have some hints i thanks you. Tomarrow i try to verify how BARTPE does. Because if i remember correctly using it I've made a connection like this. I'll tell'you! Thanks. http://www.vigevano-prabis.it/ Link to comment Share on other sites More sharing options...
MatteoGuallini Posted November 13, 2006 Author Share Posted November 13, 2006 In my work environment I can get access to the same network resources with 2 different accounts like this:CODE: AutoItDriveMapAdd("Z:","\\Snap816625\dir1\share1",0,"user_one","psw1")DriveMapAdd("Z:","\\<IP address of Snap816625>\dir2\share2",0,"user_two","psw2") Its slightly odd and I am not too sure why this does work but it seems to.GOOD! Tomarrow I'll tray. http://www.vigevano-prabis.it/ Link to comment Share on other sites More sharing options...
MatteoGuallini Posted November 14, 2006 Author Share Posted November 14, 2006 I'M SURE, IT IS IMPOSSIBLE! http://www.vigevano-prabis.it/ 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