Sign in to follow this  
Followers 0
MatteoGuallini

DriveMapAdd using multiple users

8 posts in this topic

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

Share this post


Link to post
Share on other sites



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 :whistle:

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 :whistle:

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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

In my work environment I can get access to the same network resources with 2 different accounts like this:

CODE: AutoIt

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.

GOOD! Tomarrow I'll tray.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0