c.haslam Posted May 20, 2017 Share Posted May 20, 2017 (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 May 20, 2017 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 Link to comment Share on other sites More sharing options...
Subz Posted May 20, 2017 Share Posted May 20, 2017 Try deleting the mapped drives and recreating them in your script so that during logon it will automatically remap the drives correctly. Link to comment Share on other sites More sharing options...
c.haslam Posted May 20, 2017 Author Share Posted May 20, 2017 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. Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard Link to comment Share on other sites More sharing options...
c.haslam Posted May 22, 2017 Author Share Posted May 22, 2017 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now