Dim dir As String = "c:/b4j problems" ' source
Dim dir1 As String = "C:/b4j problems/copy" 'dest
File.MakeDir("C:/b4j problems","copy")
For Each f As String In File.ListFiles(dir)
If File.IsDirectory(dir,f) Then
Log("<dir> " & f) ' don't copy directories
Else
File.Copy(dir,f,dir1,f)
Log("copied "& f & " to " & dir1)
End If
Next