Can you move a file/folder across a network share in .NET?
- by Matt Thrower
Trying to do this:
Dim originalPath As String = "\\comp1\c$\target"
Dim destinationPath As String = "\\comp2\c$\target"
If Directory.Exists(path) Then
Directory.Move(originalPath, destinationPath)
End If
But it fails. Is there another way I can achieve the same effect?