Network path access

atmosphere1212

Active member
Joined
Aug 31, 2004
Messages
42
VB.net

Is there anyway to treat a network path as a local path without mapping the drive?

Say I have a directory like
"\\abc123.mydomain.com\folder1\". How would i check if that directory exists? And perhaps copy a file from there?
 
Assuming you have access to the network path, you should be able to check if a directory exists the same way you would a local path.

If Directory.Exists(txtPath.text) Then
System.IO.File.Copy(File, Destination)
End If
 
Back
Top