如何使用高级查询语法(AQS)在Windows上查找超过x天的文件?


4

您可以使用找到比本周更早的文件

datemodified:< this week

datemodified:< 7 days

似乎不起作用。

Answers:


5

如何在Windows上查找超过x天的文件

datemodified:< 7 days

似乎不起作用。

当使用<或引用相对日期'值'时,>该值不能是与日期相关的任何关键字值(如下所列)。它必须是使用格式的值dd/mm/yy(或“区域和语言”设置中指定的任何格式。

要查找超过x天数的文件,请使用以下命令:

datemodified:< dd/mm/yy

这里dd/mm/yyx目前(今天的)日期的前几天。

笔记:

  • 输入日期时,请使用与“控制面板”>“区域和语言”设置匹配的日期格式。

  • 有一个例外,年份应始终输入4位数。


使用过滤器搜索

以下是支持日期相关过滤器的示例

Criteria                                Syntax/Example
Date created (exact date)               datecreated:8/2/2012
Date created (range)                    datecreated:8/2/2012..8/3/2012
Date created (before)                   datecreated:<8/2/2012
Date created (after)                    datecreated:>8/2/2012
Date created prior to the current year  datecreated:a long time ago
Date created within the current year    datecreated:earlier this year
Date created within the current month   datecreated:earlier this month
Date created within the current week    datecreated:earlier this week
Date created yesterday                  datecreated:yesterday
Date created today                      datecreated:today
Date modified (exact date)              datemodified:8/2/2012
Date modified (range)                   datemodified:8/2/2012..8/3/2012
Date modified (before)                  datemodified:<8/2/2012
Date modified (after)                   datemodified:>8/2/2012
Date modified prior to the current year datemodified:a long time ago
Date modified within the current year   datemodified:earlier this year
Date modified within the current month  datemodified:earlier this month
Date modified within the current week   datemodified:earlier this week
Date modified yesterday                 datemodified:yesterday
Date modified today                     datemodified:today

来源Windows 7搜索解释


与日期相关的关键字值

引用日期时,以下关键字可以是用户。

相关日期:今天,明天,昨天

多字相对日期:周,下个月,上周,过去一个月或来年。

这些值也可以输入合同,如下所示:thisweek,nextmonth,lastweek,pastmonth,comingyear。

天:周日,周一......周六

月份:1月,2月...... 12月

使用高级查询语法在Windows 7中查找文件


进一步阅读

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.