Hi
How to move files older than today’s date to other folder?
While moving other files in folder I want to keep the files which are modified today.
All other old files I want to move to Archive Folder
PLs help
TIA
Hi
How to move files older than today’s date to other folder?
While moving other files in folder I want to keep the files which are modified today.
All other old files I want to move to Archive Folder
PLs help
TIA
Try below approach:-
Assign fileCreationDate = File.GetCreationTime(file)
If fileCreationDate < todayDate
Move File: From file To destinationFolderPath
End If