c.haslam

DriveGetDrive('ALL') does not show a network drive

4 posts in this topic

#1 ·  Posted (edited)

This PC maps to drives on another PC, e.g. Z: on this PC maps to P: on the other PC.

After startup, the array DriveGetDrives('ALL') returns does not have an element containing 'z:' . At that time, Windows Explorer has a red X on Z:

If I double-click on Z: in Windows Explorer, then click on Computer, the red X has disappeared, and the array DriveGetDrives('ALL') returns has an element containing' z:' .

How do I get DriveGetDrives('ALL') to include a' z:' element in the array it returns, without first accessing Z: with Windows Explorer?

I think I am asking: with the Z: drive permanently mapped, how to I get AutoIt to activate a connection to it?

Edited by c.haslam
typo

...chris

Share this post


Link to post
Share on other sites



#2 ·  Posted

Try deleting the mapped drives and recreating them in your script so that during logon it will automatically remap the drives correctly.

Share this post


Link to post
Share on other sites

#3 ·  Posted

Thank you for idea, but my script will only be run occasionally. So I am still looking for an AutoIt solution for connecting to mapped drives.

 


...chris

Share this post


Link to post
Share on other sites

#4 ·  Posted

Using Windows Explorer:

If computer A is on when computer B is booted, WE in computer B does not show the red X on network drives.

If computer A is off when computer B is on, then computer A is booted, WE in computer B does show the red X on network drives.

----------

At the command line,  Z: works on the second computer booted, but not on the first one!

 

 


...chris

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