0

I have windows machine on which I need to query all the files created before x time. In unix, we can do it by find -ctime. By specifying the minutes, I can view all the files in a certain time period.

How can I do this in Windows?

Imran Hemani
  • 599
  • 3
  • 12
  • 27

2 Answers2

1

specificaly for "creation time", installing cygwin and using find command seems to be only way I could find :-)

find-command: search with created time

Community
  • 1
  • 1
Mamun
  • 2,322
  • 4
  • 27
  • 41
0

You can use the command "forfiles" See: http://www.windows-commandline.com/find-files-based-on-modified-time/

Andreas Vogl
  • 1,776
  • 1
  • 14
  • 18
  • I can find files by days using this command. How can I do with time ? like hours or minutes? – Imran Hemani Dec 21 '15 at 14:50
  • According to the [documention](https://technet.microsoft.com/en-us/library/cc753551.aspx), you cannot use hours or minutes. – Thomas Dickey Dec 21 '15 at 21:51
  • Very limited and kind of stupid command. Check out the `/D` option: If you want to find files changed more than 3 days before, `/D -3` will do the job. But if you're looking for files changed less than 3 days ago, you're on your own, because `/D +3` will look for files changed more than 3 days *in the future* ‍♂️, of which obviously there will be none as long as timestamps aren't manipulated. Who came up with such genius? – Lumi Aug 05 '23 at 10:21