Jump to content
c.haslam

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

Recommended Posts

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

Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Share this post


Link to post
Share on other sites

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

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!

 

 


Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

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

×
×
  • Create New...