UNC - Path - issue

I have some VB code that can take a UNC path like:
\\myserver\mydir as a parameter
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?

Who is Participating?

Improve company productivity with a Business Account.Sign Up

asawatzkiConnect With a Mentor Commented:
Does it work to use \\myserver\c$
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$.
cookreConnect With a Mentor Commented:
Cross posting is such fun...
michaelrobertfrenchAuthor Commented:
\\myserver\c$ is the solution. Thanks.
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.