Unable to access Network drives from TestExecute
If I run this code from TestComplete 11 running on my PC:
Sub EnumerateDrives
Dim colDrives, oDrive, i
Set colDrives = aqFileSystem.Drives
For i = 0 to colDrives.Count - 1
MsgBox colDrives(i).DriveLetter
Next
End Sub
It cycles through all the drives appearing under "This PC", local and network drives are listed.
From another PC running TestExecute 11 (Run As Administrator) it only lists the local hard drives and does not "see" any network drives at all, although I do "see" them from "My PC"
I did a quick check and mapped have T: mapped to \\MYPC\Test which has permissions of "Full control" to everyone and this does not help.
Any ideas?
----Added Fix/Workaround--------------
I managed to find a solution that may be of value to others.
It seemed to a windows/domain sharing issue.
On the PC running TestExecute:
Open a command prompt
NET USE T: \\MYPC\Test /PERSISTENT:YES
The above worked fine.
The original method was:
Right click "This PC">Map Network drive