如何监视某个文件中的文件,如当某个文件大小发生变化时,触发showmessage事件,我用了ShellChangeNotifier控件,设置了目录,nfSizeChange设为True,OnChange写入:
procedure Form1.ShellChangeNotifier1Change;
begin
showmessage('某个文件大小被变改了!');
end;
试着改变目录中一个文本文档大小,程序没反应,到底ShellChangeNotifier控件是怎么用的?哪里有问题?
procedure Form1.ShellChangeNotifier1Change;
begin
showmessage('某个文件大小被变改了!');
end;
试着改变目录中一个文本文档大小,程序没反应,到底ShellChangeNotifier控件是怎么用的?哪里有问题?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货