UNC - Path - issue

I have some VB code that can take a UNC path like:
\\myserver\mydir as a parameter
OR
c:\
the code interrogates mydir on myserver (or c:\) and returns files and directories - recursively -sucessfully

My question is this:
I want to interrogate c:\ on myserver but the code fails.
What do I pass the function to call all the directories on \\myserver?




 
michaelrobertfrenchAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
asawatzkiConnect With a Mentor Commented:
Does it work to use \\myserver\c$
0
 
cookreConnect With a Mentor Commented:
I suspect the confusion comes from having share names the same as directory names.

If that server's main drive is c:, there's a good chance its share name is c$.
0
 
cookreConnect With a Mentor Commented:
Cross posting is such fun...
0
 
michaelrobertfrenchAuthor Commented:
\\myserver\c$ is the solution. Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.