I wrote the below code to map a network drive to another server:
Try
Dim storefile As System.IO.Directory
Dim directory As String
Dim files As String()
Dim File As String
files = storefile.GetFiles("\\" & DropDownList1.SelectedItem
.Value & "\Y$\Checkpoints", "*")
For Each File In files
Label21.Text += (File & "<BR>")
Next
Catch ex As System.Exception
Label9.Text = ex.Message
End Try
The error message I'm getting Access to the path "\\YKCM1S1\Y$\Checkpoints"
is denied. The path exist on the other server. How can I get around this? Thanks
Start Free Trial