Find files on Windows modified after a given date using the command line

前端 未结 7 1251
南旧
南旧 2021-02-04 07:40

I need to search a file on my disk modified after a given date using the command line.

For example:

   dir /S /B WHERE modified date > 12/07/2013
         


        
7条回答
  •  北海茫月
    2021-02-04 08:36

    You can use PowerShell to do this. Try:

    Get-ChildItem -Recurse | Where-Object { $_.LastWriteTime -ge "12/27/2016" }
    

提交回复
热议问题