• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

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?




 
0
michaelrobertfrench
Asked:
michaelrobertfrench
  • 2
3 Solutions
 
asawatzkiCommented:
Does it work to use \\myserver\c$
0
 
cookreCommented:
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
 
cookreCommented:
Cross posting is such fun...
0
 
michaelrobertfrenchAuthor Commented:
\\myserver\c$ is the solution. Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now