Using the below code to copy from one remote share to another.
Occassionally, I'll get the error that the copy cannot continue because the file or path exceeds the legal limit.
Presumably this is taking in to account the server name as well, because it bombed on one that was only 234 characters.
Anyway - how can I get around this? I just need to copy the file - even if I have to somehow rename it (8.3 conversion maybe?)
Dim Files As String()
Files = Directory.GetFileSystemEntries(Src)
Dim element As String
For Each element In Files
If Directory.Exists(element) Then
CopyDirectory(element, Dest & Path.GetFileName(element), True)
File.Copy(element, Dest & Path.GetFileName(element), True)