>I think I found all the typo's. However, as I loop the variable lni becomes 3 which is outside the index. Recall that loDrives.count returns 2. So I get invalid index error. But like I said loDrives.count returns 2 and not 5???
>
>Can you provide a link to find out about "loNet.EnumNetworkDrives" ?
John,
I'm glad you found the link. Here's some more info for you...
Besides Microsoft sources such as the web site and MSDN Library, there's Dino Esposito's
Windows Script Host Programmer's Reference from Wrox Press. Also the WScript.Network object was the subject of the fourth article (of 5) on the Windows Script Host that Ed Rauh and I wrote for the VFUG newsletter. That article appeared in the December, 2000 issue and is available on-line at the web site (
www.vfug.org). Lastly, Ed's sig block has a number of links to other sites regarding the WSH.
George
Ubi caritas et amor, deus ibi est