See if this helps.
1 Button
Public Class Form1
Private sTemp1, sTemp2 As String
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
sTemp1 = "" : sTemp2 = ""
Dim fbd As New FolderBrowserDialog
With fbd
.Description = "Select a folder to copy the content FROM..."
If .ShowDialog = Windows.Forms.DialogResult.OK Then
sTemp1 = .SelectedPath
End If
.Description = "Select a folder to copy the content TO..."
If .ShowDialog = Windows.Forms.DialogResult.OK Then
sTemp2 = .SelectedPath
End If
If Not sTemp1 = "" OrElse Not sTemp2 = "" Then copyDirectory(sTemp1, sTemp2)
End With
End Sub
Private Sub copyDirectory(ByVal selTargetPath As String, ByVal selDestinationPath As String)
sTemp1 = ""
If Not IO.Directory.Exists(selDestinationPath) Then IO.Directory.CreateDirectory(selDestinationPath)
For Each myCoolFile As String In My.Computer.FileSystem.GetFiles _
(selTargetPath, FileIO.SearchOption.SearchTopLevelOnly, "*.*")
sTemp1 = selDestinationPath & "\" & IO.Path.GetFileName(myCoolFile)
If Not IO.File.Exists(sTemp1) Then
IO.File.Copy(myCoolFile, sTemp1)
Else
MsgBox("File.Exists, cannot copy." & vbNewLine & sTemp1, MsgBoxStyle.Information)
End If
Next
MsgBox(".done.", MsgBoxStyle.Information)
End Sub
End Class