I am using this code to map all the drives on my local machine but would like to dearly know how to access the shared files and folders on the lan we have and map them as well, can anyone help please.



Private Sub Form_Load()
Dim objDrive As drive

For Each objDrive In fso.Drives
cboDrives.AddItem objDrive 'map the local drives into cbo
Next



This works great but I cannot find out how to do this with the lan machines?? Can anyone help me out please, I have tried the UNC method:


For Each objDrive In fso.Drives("\\SERVERNAME\.."


but all get back is "Path not found", I do know its possible but am unsure as how to expand on what I have, there is very little info on this I can find.

Any help would be most appreciated.


Happy days,

Smithy.