See if this helps.
1.Button andAlso you will need to set your "Original" Folder.Path.
Imports System.IO
Public Class Form1
Private myDesktopFolder As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\"
Private myOriginalFilesFolder As String = myDesktopFolder & "vb.samples - Copy\", _
myDestinationFilesFolder As String = myDesktopFolder & "TEMP\"
Private Sub moveFiles(ByVal selOriginalLocationFolder As String, ByVal selDestinationFolder As String)
If Directory.Exists(selOriginalLocationFolder) Then
If Not Directory.Exists(selDestinationFolder) Then Directory.CreateDirectory(selDestinationFolder)
Dim iMoved As Integer = 0, iDeleted As Integer = 0
With My.Computer.FileSystem
For Each foundFile As String In .GetFiles(myOriginalFilesFolder, FileIO.SearchOption.SearchAllSubDirectories, "*")
'// check if File already.Exists in Destination.Folder
If Not File.Exists(selDestinationFolder & Path.GetFileName(foundFile)) Then
.MoveFile(foundFile, selDestinationFolder & Path.GetFileName(foundFile))
iMoved += 1
Else '// If it Exists in Destination.Folder, .Delete from Original.Folder.
.DeleteFile(foundFile, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.SendToRecycleBin)
iDeleted += 1
End If
Next
End With
MsgBox("Files.Moved: " & iMoved & vbNewLine & "Files.Deleted: " & iDeleted, MsgBoxStyle.Information)
End If
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
moveFiles(myOriginalFilesFolder, myDestinationFilesFolder)
End Sub
End Class