Sign in to follow this  
Followers 0
BoskoBuha

How to determine which device/drive was mapped with DriveMapAdd("*", "someshare")

4 posts in this topic

I was wondering if there is a way to tell what device/drive was used to map a share when DriveMapAdd ( "*", "\\someserver\someshare") is used?

Share this post


Link to post
Share on other sites



I found this in the helpfile under DriveMapAdd(). I hope it helps.

Note: When using "*" for the device parameter the drive letter selected will be returned instead of 1 or 0, e.g. "U:". If there was an error using "*" then a blank string "" will be returned.

Thanks,

Jarvis


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I found this in the helpfile under DriveMapAdd(). I hope it helps.

Jarvis, thanks!

I really missed that note. I only checked parameters table and return value section. It's exactly what I was looking for and was wondering, why it hasn't been implemented.... >_<

Cheers,

Bostjan

Edited by BoskoBuha

Share this post


Link to post
Share on other sites

No problem. I figured it was something that was missed. I had to go to the help file to read myself as I thought that would be expected, but I didn't know.

I'm glad I could help,

Jarvis


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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