Hi
I'm looking to put together a script that echos the string 'compliant' depending on whether three files were created after a specified date.
\windows\system32\drivers\srvnet.sys
\windows\system32\drivers\srv2.sys
\windows\system32\drivers\srv.sys
The condition is that all these files must have been created after Feb 11th 2017 before the echo is triggered.
Can you help?
how to check if a file was created after a specified date
Moderator: DosItHelp
-
- Posts: 1
- Joined: 15 Oct 2017 14:30
Re: how to check if a file was created after a specified date
Look at the FORFILES command.