2009-04-07, 01:18
breaksyid Wrote:Thanks for the response. That worked fine. The error with the movies was a weird folder name with a tilde '~' in it. Might wanna wrap the old Try Catch around that bit
Sometimes it seems like the whole program is nothing but a large collection of Try Catch blocks.
It is an old problem to do with the recursive folder search that I have been unable to find a work around for and a Try Catch does not help, the line of code that causes the issue is :-
Code:
For Each folder As String In My.Computer.FileSystem.GetDirectories(realpaths(f))
I can add conditions within this loop that stop a particular subfolder being added eg
Code:
If strfolder.IndexOf("System Volume Information") = -1 Then
add subfolder
End If
But this seems to be a poor way to go about doing it, any ideas you have would be appreciated