|i m not exactly sure what you want and how it will be accomplished.|
May be below will help.
In a batch file below line will extract the date and time info of all the fles and save as variable %%a
for /f %%a in ('dir /b') do echo %%~ta
now, below lines will give you currnt date and time.
Now, you can compare these, try some logic and it should work