I want to move a todays date files to todays folder daily basis

i want to move all pdf files todays date to todays folder daily
i want to repeat this on a daily basis

how can do this please do the needful

This will show you how to get just the files for today:

First check if the folder doesn’t already exist, and create it.

image

Then For Each through New System.IO.DirectoryInfo("C:\temp").GetFiles("*").Where(Function(s) s.LastWriteTime.Date = Today) and move the files.

(Note that you may want to use something other than LastWriteTime such as CreatedDate)