So what I want is to move (or copy then kill the files on the old location) all of the all of files and subfolders (if there are any) from one folder to another.
I have made it to move files but not subfolders. Does anyone have solution for making it move/copy subfolders?
I have made it to move files but not subfolders. Does anyone have solution for making it move/copy subfolders?
Code:
Dim OldPath As String
Dim NewPath As String
Dim FnameAs String
Fname = Dir(OldPath & "*.*")
Do While Fname <> ""
Name OldPath & Fname As NewPath & Fname
Fname = Dir
Loop