文件监控服务(检测文件变化后执行程序)

上传者: a85321 | 上传时间: 2021-07-14 04:14:11 | 文件大小: 1.12MB | 文件类型: RAR
编写背景:公司要求整一个语音播放的网页,通过web界面在文本框内输入文字后,将这些文字转换成语音,然后播放到广播系统,于是就写了这么一个windows小服务 功能说明:检测一个或者多个文件的变化,一旦变化,立刻执行对应的程序或者脚本。 程序配置文件说明 AppCfg.dat 说明:扫描频率(秒) 监视列表:"/"换行,等号之前为条件执行程序,等号之后为监视文件路径,可以设置多个。冒号可加,可不加 例子:"E:\test.bat"="E:\4.txt",E:\3.txt;/ "执行文件路径"="监视文件路径"(支持UNC路径) 配置文件示例: 扫描频率=5 监视列表=/ D:\语音播报\播放内容\临时通知.vbs=D:\语音播报\播放内容\临时通知.txt;/ D:\语音播报\播放内容\临时通知.vbs=\\192.168.1.200\播放内容\临时通知.txt; 环境依赖: .net 4.0 程序安装后,运行services.msc,会有一项“语音服务”,是以服务形式安装的,需要允许桌面交互,程序本身没有操作界面,修改配置文件可以达到你想要的目的,修改配置文件后重启该服务生效。 完美支持操作系统:win2003以下, 可兼容支持WIN7以上:因win7以上系统权限的缘故,会导致指定的执行程序出现权限问题,若你的执行程序能绕过这问题,那就没什么了

文件下载

资源详情

( 32 个子文件 1.12MB ) 文件监控服务(检测文件变化后执行程序)
播放内容
test.vbs 461B
123.vep 1.38KB
临时通知.txt 19B
临时通知.exe 1.21MB
临时通知.bat 39B
over.mp3 93.06KB
通知.txt 5B
begin.mp3 63.06KB
临时通知.vbs 3.36KB
通知.vbs 3.01KB
SoundSvr
MyIpTextBox.dll 24.00KB
pictureView.dll 171.00KB
AppCfg.dat 133B
InstallUtil.exe.config 223B
2、卸载语音通知.bat 35B
停止服务.bat 17B
1、安装语音通知.bat 223B
scanService.InstallLog 14.46KB
FRCommonClass.xml 215.48KB
InstallUtil.exe 27.34KB
0、AppCfg说明.txt 256B
Common.Logging.dll 28.00KB
AppCommonClassLibrary.dll 9.00KB
InstallUtilLib.dll 56.84KB
WeifenLuo.WinFormsUI.Docking.dll 446.00KB
Spring.Core.dll 812.00KB
InstallUtil.InstallLog 11.16KB
重启服务.bat 37B
安装.bat 31B
启动服务.bat 18B
scanService.exe 9.00KB
FRCommonClass.dll 752.00KB
[{"title":"( 32 个子文件 1.12MB ) 文件监控服务(检测文件变化后执行程序)","children":[{"title":"播放内容","children":[{"title":"test.vbs <span style='color:#111;'> 461B </span>","children":null,"spread":false},{"title":"123.vep <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"临时通知.txt <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"临时通知.exe <span style='color:#111;'> 1.21MB </span>","children":null,"spread":false},{"title":"临时通知.bat <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":"over.mp3 <span style='color:#111;'> 93.06KB </span>","children":null,"spread":false},{"title":"通知.txt <span style='color:#111;'> 5B </span>","children":null,"spread":false},{"title":"begin.mp3 <span style='color:#111;'> 63.06KB </span>","children":null,"spread":false},{"title":"临时通知.vbs <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"通知.vbs <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"SoundSvr","children":[{"title":"MyIpTextBox.dll <span style='color:#111;'> 24.00KB </span>","children":null,"spread":false},{"title":"pictureView.dll <span style='color:#111;'> 171.00KB </span>","children":null,"spread":false},{"title":"AppCfg.dat <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"InstallUtil.exe.config <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"2、卸载语音通知.bat <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"停止服务.bat <span style='color:#111;'> 17B </span>","children":null,"spread":false},{"title":"1、安装语音通知.bat <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"scanService.InstallLog <span style='color:#111;'> 14.46KB </span>","children":null,"spread":false},{"title":"FRCommonClass.xml <span style='color:#111;'> 215.48KB </span>","children":null,"spread":false},{"title":"InstallUtil.exe <span style='color:#111;'> 27.34KB </span>","children":null,"spread":false},{"title":"0、AppCfg说明.txt <span style='color:#111;'> 256B </span>","children":null,"spread":false},{"title":"Common.Logging.dll <span style='color:#111;'> 28.00KB </span>","children":null,"spread":false},{"title":"AppCommonClassLibrary.dll <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false},{"title":"InstallUtilLib.dll <span style='color:#111;'> 56.84KB </span>","children":null,"spread":false},{"title":"WeifenLuo.WinFormsUI.Docking.dll <span style='color:#111;'> 446.00KB </span>","children":null,"spread":false},{"title":"Spring.Core.dll <span style='color:#111;'> 812.00KB </span>","children":null,"spread":false},{"title":"InstallUtil.InstallLog <span style='color:#111;'> 11.16KB </span>","children":null,"spread":false},{"title":"重启服务.bat <span style='color:#111;'> 37B </span>","children":null,"spread":false},{"title":"安装.bat <span style='color:#111;'> 31B </span>","children":null,"spread":false},{"title":"启动服务.bat <span style='color:#111;'> 18B </span>","children":null,"spread":false},{"title":"scanService.exe <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false},{"title":"FRCommonClass.dll <span style='color:#111;'> 752.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明
服务器状态检查中...