Hello, all
Thank you in advance!
I’d like to move files which are modified today to specific folder.
Could you please help for which script that I should input?
Hello, all
Thank you in advance!
I’d like to move files which are modified today to specific folder.
Could you please help for which script that I should input?
@Dorothy_lee - Below code will get the list of files modified today…
StrArrFiles = Directory.GetFiles("C:\Users\giris\Desktop").Where(Function(x) New FileInfo(x).LastWriteTime.Date = DateTime.Today.Date).ToArray
Use the StrArrFiles, in the For each and move the files to the target folder.
Hope this helps
@prasath17 Thank you so much:)!!!
It helped a lot
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.