With property value queries, you can find files that have property values that match a given criterion. The properties for which you can query include basic file information such as file name and file size, and ActiveX properties including the document summary that is stored in files created by ActiveX-aware applications.
There are two types of property queries:
This section covers the following topics:
Property names are preceded by either the at sign (@) or number sign (#) character. Use @ for relational queries, and # for regular expression queries.
If no property name is specified, @contents is assumed.
Properties available for all files include:
Property Name | Description |
---|---|
All | Matches words, phrases, and any property |
Contents | Words and phrases in the file |
Filename | Name of the file |
Size | File size |
Write | Last time the file was modified |
ActiveX property values can also be used in queries. Web sites with files created by most ActiveX-aware applications can be queried for these properties:
Property Name | Description |
---|---|
DocTitle | Title of the document |
DocSubject | Subject of the document |
DocAuthor | The documents author |
DocKeywords | Keywords for the document |
DocComments | Comments about the document |
For a complete list of property names, see the List of Property Names later on this page.
Relational operators are used in relational property queries.
To Search For | Example | Results |
---|---|---|
Property values in relation to a fixed value | @size < 100 |
Files whose size matches the query |
Property values with all of a set of bits on | @attrib ^a 0x820 |
Compressed files with the archive bit on |
Property values with some of a set of bits on | @attrib ^s 0x20 |
Files with the archive bit on |
To Search For | Example | Results |
---|---|---|
A specific value | @DocAuthor = Bill Barnes |
Files authored by Bill Barnes |
Values beginning with a prefix | #DocAuthor George* |
Files whose author property begins with George |
Files with any of a set of extensions | #filename *.|(exe|,dll|,sys|) |
Files with .exe, .dll, or .sys file-name extensions |
Files modified after a certain date | @write > 96/2/14 10:00:00 |
Files modified after February 14, 1996 at 10:00 GMT |
Files modified after a relative date | @write > -1d2h |
Files modified in the last 26 hours |
Vectors matching a vector | @vectorprop = { 10, 15, 20 } |
ActiveX documents with a vectorprop value of { 10, 15, 20 } |
Vectors where each value matches a criterion | @vectorprop >^a 15 |
ActiveX documents with a vectorprop value in which all values in the vector are greater than 15 |
Vectors where at least one value matches a criterion | @vectorprop =^s 15 |
ActiveX documents with a vectorprop value in which at least one value is 15 |
Regular expressions in property queries are defined as follows:
( opens a group. Must be followed by a matching ).
) closes a group. Must be preceded by a matching (.
[ opens a character class. Must be followed by a matching (un-escaped) ].
{ opens a counted match. Must be followed by a matching }.
} closes a counted match. Must be preceded by a matching {.
, separates OR clauses.
* matches zero or more occurrences of the preceding expression.
? matches zero or one occurrences of the preceding expression.
+ matches one or more occurrences of the preceding expression.
Anything else, including |, matches itself.
^ matches everything but following classes. Must be the first character.
] matches ]. May only be preceded by ^, otherwise it closes the class.
- range operator. Preceded and followed by normal characters.
Anything else matches itself (or begins or ends a range at itself).
|{m|} matches exactly m occurrences of the preceding expression. (0 < m < 256).
|{m,|} matches at least m occurrences of the preceding expression. (1 < m < 256).
|{m,n|} matches between m and n occurrences of the preceding expression, inclusive. (0 < m < 256, 0 < n < 256).
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/language/asp/ix/ixqrypvq.htm, 13KB, , updated: 1997/9/29 02:23, local time: 2024/12/27 22:45,
18.219.127.59:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/language/asp/ix/ixqrypvq.htm"> Microsoft Index Server: Property Value Queries</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.