Java
using System;using SystemCollectionsGeneric;
using SystemComponentModel;
using SystemData;
using SystemDrawing;
using SystemText;
using SystemWindowsForms;
namespace FileSystemWatcher
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnSetPath_Click(object sender, EventArgs e)
{
fileSystemWatcher1Path = txtDirText;
}
private void fileSystemWatcher1_Changed(object sender, SystemIOFileSystemEventArgs e)
{
txtInfoText += "ChangeType :: " + eChangeTypeToString() + "\nFullPath :: " + eFullPathToString() + "\n\n ";
}
protected void fileSystemWatcher1_Created(object sender, SystemIOFileSystemEventArgs e)
{
txtInfoText += "ChangeType :: " + eChangeTypeToString() + "\nFullPath :: " + eFullPathToString() + "\n\n ";
}
protected void fileSystemWatcher1_Deleted(object sender, SystemIOFileSystemEventArgs e)
{
txtInfoText += "ChangeType :: " + eChangeTypeToString() + "\nFullPath :: " + eFullPathToString() + "\n\n ";
}
protected void fileSystemWatcher1_Renamed(object sender, SystemIORenamedEventArgs e)
{
txtInfoText += "ChangeType :: " + eChangeTypeToString() + "\nFullPath :: " + eFullPathToString() + "\nOld FileName :: " + eOldNameToString() + "\n\n ";
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
如果这个不行就试试现成的吧。
华军软件园下载地址:
thunder://QUFodHRwOi8vcDJzLm5ld2h1YS5jb20vZG93bi9IQV9GaWxlbW9uNzA0X1dHTC5leGVaWg==
以上就是关于请帮忙写一个程序,实时监控电脑屏幕上某一个变动的数据,一旦数据异常就报警.全部的内容,包括:请帮忙写一个程序,实时监控电脑屏幕上某一个变动的数据,一旦数据异常就报警.、、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)