📄 dirnotify.htm
字号:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>DirNotify Reference</title>
</head>
<body>
<p align="center"><font color="#FF0000" face="Arial"><strong>DirNotify v1.0 for Delphi 2,
3 and 4</strong></font></p>
<p align="center">Copyright (c) 1998 Carlos Barbosa<br>
All Rights Reserved.<br>
email: <a href="mailto:CarlosBarbosa@bigfoot.com">CarlosBarbosa@bigfoot.com</a><br>
home page: <a href="http://www.bigfoot.com/~CarlosBarbosa">http://www.bigfoot.com/~CarlosBarbosa</a></p>
<p align="left"> </p>
<p><a name="TDirNotify"><strong><font face="Arial">TDirNotify object</font></strong></a></p>
<p><small><font face="Arial">DirNotify component monitors a directory for changes in its
files and/or sub-directories.</font></small></p>
<p><font face="Arial"><small><strong>PROPERTIES</strong></small></font></p>
<table border="1" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td width="100%"><font face="Arial"><small>Enabled: Boolean;</small><br>
<small>Set to True when monitoring, or False when inactivated.</small></font></td>
</tr>
<tr>
<td width="100%"><font face="Arial"><small>Filter: TNotifyFilters;</small><br>
<small>Specifies the filter conditions that satisfy a change notification. The set may
contain the following flags:</small></font><table border="0" cellspacing="0"
cellpadding="4">
<tr vAlign="top">
<td valign="top"><font face="ARIAL,HELVETICA" size="2">nfFileName</font></td>
<td valign="top"><font face="ARIAL,HELVETICA" size="2">Any filename change in the watched
directory or subtree causes an event change notification occur. Changes include renaming,
creating, or deleting a filename. </font></td>
</tr>
<tr vAlign="top">
<td valign="top"><font face="ARIAL,HELVETICA" size="2">nfDirName</font></td>
<td valign="top"><font face="ARIAL,HELVETICA" size="2">Any directory-name change in the
watched directory or subtree an event change notification occur. Changes include creating
or deleting a directory. </font></td>
</tr>
<tr vAlign="top">
<td valign="top"><font face="ARIAL,HELVETICA" size="2">nfAttributes</font></td>
<td valign="top"><font face="ARIAL,HELVETICA" size="2">Any attribute change in the watched
directory or subtree causes an event change notification occur.</font></td>
</tr>
<tr vAlign="top">
<td valign="top"><font face="ARIAL,HELVETICA" size="2">nfSize</font></td>
<td valign="top"><font face="ARIAL,HELVETICA" size="2">Any file-size change in the watched
directory or subtree causes an event change notification occur. The operating system
detects a change in file size only when the file is written to the disk. For operating
systems that use extensive caching, detection occurs only when the cache is sufficiently
flushed. </font></td>
</tr>
<tr vAlign="top">
<td valign="top"><font face="ARIAL,HELVETICA" size="2">nfLastWrite</font></td>
<td valign="top"><font face="ARIAL,HELVETICA" size="2">Any change to the last write-time
of files in the watched directory or subtree causes an event change notification occur.
The operating system detects a change to the last write-time only when the file is written
to the disk. For operating systems that use extensive caching, detection occurs only when
the cache is sufficiently flushed. </font></td>
</tr>
<tr vAlign="top">
<td valign="top"><font face="ARIAL,HELVETICA" size="2">nfSecurity</font></td>
<td valign="top"><font face="ARIAL,HELVETICA" size="2">Any security-descriptor change in
the watched directory or subtree causes an event change notification occur.</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%"><font face="Arial"><small>Path: String;</small><br>
<small>Identifies the directory to be monitored.</small></font></td>
</tr>
<tr>
<td width="100%"><font face="Arial"><small>WatchSubTree: Boolean;<br>
If this property is True, the function monitors the directory tree rooted at the specified
directory; if it is False, it monitors only the specified directory.</small></font></td>
</tr>
</table>
<p><font face="Arial"><small><strong>EVENTS</strong></small></font></p>
<table border="1" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td width="100%"><font face="Arial"><small>OnChange: TNotifyEvent;</small><br>
<small>This event is triggered when a change matching the filter conditions occurs in the
specified directory or subtree.</small></font></td>
</tr>
</table>
<p> </p>
<p align="center"><a href="#Top"><small><font face="Arial">Back To Top</font></small></a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -