要检查的变化,即从目录中删除目录或文件或文件夹、或者添加到一个新的文件或文件夹到一个目录下,我们必须使用FileSystemWatcher类。这个类允许我们通过程序来监控目录的变化…
C#获取本机IP地址 using System.Net; using System.Net.Sockets; string name = Dns.GetHostName(); va…
public static string GetMd5Hash(string pathName) { string strResult = ""; string…
这是一个C#实现的屏幕抓取程序,可以抓取整个屏幕保存为指定格式的图片,并且保存当前控制台缓存到文本 using System; using System.Collections.G…
public static string GetSHA1Hash(string pathName) { string strResult = ""; strin…
// The initial C# code for the WMI query was generated by WMI Code Generator, Version 5.00…
using System; using System.Collections.Generic; using System.Linq; using System.Text; usin…
using System; using System.Windows.Forms; namespace RobvanderWoude { class Paste { [STAThr…
#region DES加密解密 /// <summary> /// DES加密 /// </summary> /// <param name=&quo…
using System; using System.Collections; using System.Collections.Generic; using System.Lin…
微软提供的函数不能再多网卡的情况下,判断指定网卡的网线连接状态。以下代码刚好能够解决这个问题。 using System; using System.Collections.Gen…
C#判断指定分区是否是ntfs格式 using System; using System.IO; namespace RobvanderWoude { class IsNTFS {…
C# Winform利用POST传值方式模拟表单提交数据(Winform与网页交互)