1<td valign="top">DocSubject</td>
1<td valign="top">文档的主题</td>
1<tr>
2<td valign="top">DocAuthor</td>
3<td valign="top">文档的作者</td>
4</tr>
1<tr>
2<td valign="top">DocKeywords</td>
3<td valign="top">文档中的关键字</td>
4</tr>
1<tr>
2<td valign="top">DocComments</td>
3<td valign="top">文档中的注释</td>
4</tr>
1<p>属性名的完整列表,请参阅本页后面的<a href="#PropertyNamesList">属性名列表</a> 。</p>
1<h2><a name="RelationalOperators">关系运算符</a></h2>
1<table border="1" cellpadding="4" cellspacing="1" width="100%">
2<tr>
3<th align="Left" bgcolor="#C0C0C0" valign="bottom" width="33%">搜索目标</th>
4<th align="Left" bgcolor="#C0C0C0" valign="bottom" width="33%">示例</th>
5<th align="Left" bgcolor="#C0C0C0" valign="bottom" width="33%">结果</th></tr>
6<tr>
7<td valign="top">与固定值相关的属性值</td>
8<td valign="top">@size < 100 <br/>
9@size <= 100 <br/>
10@size = 100 <br/>
11@size != 100 <br/>
12@size >= 100 <br/>
13@size > 100 </td>
14<td valign="top">大小与查询匹配的文件</td>
15</tr>
16<tr>
17<td valign="top">拥有全部比特集的属性值</td>
18<td valign="top"><code>@attrib ^a 0x820</code></td>
19<td valign="top">拥有存档属性的压缩文件</td>
20</tr>
21<tr>
22<td valign="top">拥有一些比特集的属性值</td>
23<td valign="top"><code>@attrib ^s 0x20</code></td>
24<td valign="top">拥有存档属性的文件</td>
25</tr>
26</table>
1<h2><a name="PropertyValues">属性值</a></h2>
1<table border="1" cellpadding="4" cellspacing="1" width="100%">
2<tr>
3<th align="Left" bgcolor="#C0C0C0" valign="bottom" width="130">搜索目标</th>
4<th align="Left" bgcolor="#C0C0C0" valign="bottom" width="200">示例</th>
5<th align="Left" bgcolor="#C0C0C0" valign="bottom" width="170">结果</th></tr>
6<tr>
7<td valign="top">指定值</td>
8<td valign="top"><code>@DocAuthor = Bill Barnes </code></td>
9<td valign="top">由“Bill Barnes”创作的文件</td>
10</tr>
11<tr>
12<td valign="top">以前缀开始的值</td>
13<td valign="top"><code>#DocAuthor George* </code></td>
14<td valign="top">作者名字是以“George”打头的文件</td>
15</tr>
16<tr>
17<td valign="top">带扩展名集中任何一种扩展名的文件</td>
18<td valign="top"><code>#filename *.|(exe|,dll|,sys|) </code></td>
19<td valign="top">带 .exe、.dll 或 .sys 扩展名的文件</td>
20</tr>
21<tr>
22<td valign="top">在某个日期之后修改过的文件</td>
23<td valign="top"><code>@write > 96/2/14 10:00:00</code></td>
24<td valign="top">在 1996 年 2 月 14 日 10:00 GMT 之后修改过的文件
25</td>
26</tr>
27<tr>
28<td valign="top">在相对日期之后修改过的文件</td>
29<td valign="top"><code>@write > -1d2h</code></td>
30<td valign="top">在最近 26 小时之内修改过的文件</td>
31</tr>
32<tr>
33<td valign="top">匹配一个矢量的矢量</td>
34<td valign="top"><code>@vectorprop = { 10, 15, 20 }</code></td>
35<td valign="top">矢量值为 { 10, 15, 20 } 的 ActiveX 文档</td>
36</tr>
37<tr>
38<td valign="top">每一个值都与标准匹配的矢量</td>
39<td valign="top"><code>@vectorprop >^a 15</code></td>
40<td valign="top">矢量值的每一个值都大于 15 的 ActiveX 文档</td>
41</tr>
42<tr>
43<td valign="top">至少有一个值与标准匹配的矢量</td>
44<td valign="top"><code>@vectorprop =^s 15</code></td>
45<td valign="top">矢量值中至少有一个值大于 15 的 ActiveX 文档</td>
46</tr>
47</table>
1<ul>
2<li>当使用正则表达式查询时,请确保在属性值之前带上 (#) 字符,否则请带上“at”(@) 字符。等于 (=) 关系运算符假定为用于正则表达式查询。</li>
3<li>文件名 (#filename) 是唯一支持在文字左边出现通配符的正则表达式的属性。</li>
4<li>日期和时间值为 <em>yyyy/mm/dd hh:mm:ss</em> 或 <em>yyyy-mm-dd hh:mm:ss</em> 格式。年的前两位和整个时间都可以忽略。如果忽略年的前两位,那么小于等于 29 的数字将解释为二十一世纪,大于或等于 30 的数字将解释为二十世纪。所有日期和时间都是格林尼治时间 (GMT)。</li>
5<li>相对与当前时间的日期和时间可以用减号 (-) 跟上零或整数单位和时间单位对来表示。时间单位解释为:(y) 年、(m) 月、(w) 周、(d) 天、(h) 小时、(n) 分钟和 (s) 秒。作为可选项,在时间表达式后还可以指定三位毫秒值。例如,1997/12/8 10:10:03:452</li>
6<li>货币值为 <em>x.y</em> 格式。在此,<em>x</em> 是金额的整数值,<em>y</em> 是小数值。单位没有假定值。</li>
7<li>逻辑值为:(t) 或 (true) 对应与 <strong>TRUE</strong>, (f) 或 (false) 对应与 <strong>FALSE</strong>。</li>
8<li>矢量 (VT_VECTOR) 表示为:左大括号 ({) 开始、紧跟逗号分隔的值列表,以右大括号 (}) 结束。</li>
9<li>单值表达式与矢量相比较表示为:<a href="#RelationalOperators">关系运算符</a>,然后是 (^a)(对应于<em>全部</em>)或 (^s)(对应于<em>一些</em>)。
10<li>数字值可以是十进制或十六进制(前面加 0x)。</li>
11<li><em>contents</em> 属性值不支持关系运算符,如果指定关系运算符,将找不到任何结果。例如,@contents Microsoft 将查找包含 Microsoft 的文档,但 @contents<strong>=</strong>Microsoft 将什么也找不到。</li>
12</li></ul>
1<h3><a name="RegularExpressions">正则表达式</a></h3>