Jump to content

Recommended Posts

Posted

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
  • Developers
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

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.
  :)

Posted

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.

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...