Monday, November 5, 2012

DOS Batch file to find “new” files by date

c:\xcopy \windows\*.exe /l /s /d:12-01-2000 .

This command will output a list of .EXE files and paths in the \windows folder recursively, that were modified on or after 12/1/2000, without actually copying them. NOTE there is a period at then end of the command. Its hard to see with a small font.

Edit 1: I took out the /f from the original command, as it was extraneous.
Edit 2: You can pipe the output to "| more" if you want

No comments: