I am trying to use the DirectoryInfo class to create links on a web page to
files in the specified directory. I can get it to work just fine. The
problem I am having is when I try to put in a UNC path, it does not work. It
says it cannot find the specified path. Below is the code I am using
Dim dirInfo as New DirectoryInfo("\\ServerName\Directory\SubDirectory")
I can only get this to work when I use local directories such as "D:\"
Any help is appreciated.
Thanks
W.G. Ryan MVP - 31 Aug 2005 19:29 GMT
Hmm, is there any permissioning problems... I just used this
DirectoryInfo di = new DirectoryInfo(@\\server2\software); and it worked
fine.
The documentation specifically states yoiu can use UNC
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemiodirectoryinfoclasstopic.asp
so there may b e some other problem...like full read/write access
>I am trying to use the DirectoryInfo class to create links on a web page to
> files in the specified directory. I can get it to work just fine. The
[quoted text clipped - 8 lines]
> Any help is appreciated.
> Thanks