Neji
Neji

Reputation: 6839

CMD : how to list files updated after a specified date in a directory using commands

i want to list files that i updated today or after any particular date . I have tried using timeField but am not able to get the expected results. How can i use DIR with other parameters to list down files that were updated after a specified date.

Upvotes: 2

Views: 468

Answers (1)

Magoo
Magoo

Reputation: 80023

make an empty dummy directory, then use xcopy /l /y /d:m-d-y

md dummy
xcopy /L /y /d:m-d-y "yourdirectoryname" dummy >resultfilename.txt
rd dummy

should get you a list of filenames updated d-m-y or later into resultfilename.txt

Upvotes: 2

Related Questions