UNC - Path - issue

Posted on 2007-11-16
Last Modified: 2010-08-05
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?

Question by:michaelrobertfrench
  • 2

Accepted Solution

asawatzki earned 250 total points
ID: 20300668
Does it work to use \\myserver\c$
LVL 22

Assisted Solution

cookre earned 250 total points
ID: 20300692
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$.
LVL 22

Assisted Solution

cookre earned 250 total points
ID: 20300705
Cross posting is such fun...

Author Closing Comment

ID: 31409623
\\myserver\c$ is the solution. Thanks.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
advertisement module in core php 4 170
detecting  the added row index in a datagridview 3 80
Basic Java Case or If-Else statement... 3 57
collection output issue 9 36
This article will show, step by step, how to integrate R code into a R Sweave document
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question