|
-
Oct 28th, 2004, 12:34 PM
#1
Thread Starter
New Member
ASP.NET checking existing network folder
I'm using asp.net with visual basic .net as the code behind. I want to be able to check to see if a folder on another computer exists. Now with the code I supplied below it works locally, but I cannot get it to work with a network share. Now I can access the network share from the computer I making the call from by going through network places. Also if I type the foldername that I provided into the address bar of explorer the foldername is brought up in explorer
This is the code I have been using:
foldername = "\\ServerName\Share\FolderName"
<code>
If Directory.Exists(folderName) = False Then
'Directory.CreateDirectory(folderName)
Response.Write("<br> Folder was Not Found <br>")
Response.Write(Directory.Exists(folderName).ToString)
Else
Response.Write("<br> Folder was Found")
End If
</code>
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|