PC Review


Reply
Thread Tools Rate Thread

DirectoryInfo and UNC Paths

 
 
=?Utf-8?B?SmVzc2FyZA==?=
Guest
Posts: n/a
 
      28th Feb 2005
Hi all,

I'm using a System.IO.DirectoryInfo object as follows:

Public Function FolderExists(ByVal FolderPath As String) As Boolean
Dim f As New IO.DirectoryInfo(FolderPath)
Return f.Exists
End Function

When I pass in a shared folder that points to a directory from another
computer on the network in the format "\\OtherServer\Profiles" to the
function it returns false. However, if I go into explorer I can browse to
this
directory through the My Network Places it is there. I don't want to have to
map this drive to be able to do this. What exactly am I missing here?

Regards,
Jesse
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for function to resolve VirtualStore paths to physical paths Scott Windows Vista General Discussion 9 8th Jul 2007 08:07 PM
Looking for function to resolve VirtualStore paths to physical paths Scott Windows Vista File Management 9 8th Jul 2007 08:07 PM
Using UNC with DirectoryInfo =?Utf-8?B?QW5keQ==?= Microsoft Dot NET 0 1st Sep 2005 06:51 PM
DirectoryInfo on read-only paths =?Utf-8?B?SnVhbiBNYW51ZWwgUmFtb2xsaW5v?= Microsoft ASP .NET 6 6th Feb 2005 02:52 AM
Link Paths changing to UNC paths Gail Microsoft Excel Misc 0 13th Apr 2004 07:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:19 PM.