DirectoryInfo source = new DirectoryInfo(textbox1.Text); DirectoryInfo destination = new DirectoryInfo(textbox2.Text); foreach (FileInfo file in source.GetFiles("*." + txtExtensions.Text)) { file.MoveTo(Path.Combine(destination.FullName, file.Name)); }
... if(file.LastWriteTime > datetimepicker1.Value && file.LastWriteTime < datetimepicker2.value) file.MoveTo(...); ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)