摘要:
思路是通过WebRequest连接一些网上提供IP查询服务的网站,下载到含有你的IP的网页,然后用正则表达式提取出IP来class Program { static void Main(string[] args) { Console.Writ... 阅读全文
摘要:
static void Main(string[] args) { string IPs = " 192.168.1.1 202.47.4.6 1.2.3.3 "; Console.WriteLine(I... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;using System.Net;using System.I... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;using System.Text.RegularExpressions;namesp... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Mail;using System.Net.Mime;using System.IO;using Sy... 阅读全文
摘要:
方法不是很好。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.Text.RegularExpressions;namespa... 阅读全文
摘要:
参考了网上的文章,具体地址不记得了。下面的方法可以过滤掉虚拟机的网卡等无效网卡,进而只留下真实的网卡。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Mana... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Management;namespace _17获取MAC地址{ class Program { ... 阅读全文
摘要:
照着书敲的。留作笔记吧。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;namespace _18获取本机磁盘... 阅读全文
摘要:
实际是通过c#编程方式调用了CMD命令行,然后调用netstat命令,然后将CMD命令的输出流转到了C#控制台程序上。也可以将结果输出到文件。using System;using System.Collections.Generic;using System.Linq;using System.Te... 阅读全文