摘要:
思路是通过WebRequest连接一些网上提供IP查询服务的网站,下载到含有你的IP的网页,然后用正则表达式提取出IP来class Program { static void Main(string[] args) { Console.Writ... 阅读全文
posted @ 2013-07-02 22:24
liqipeng
阅读(357)
评论(0)
推荐(0)
摘要:
static void Main(string[] args) { string IPs = " 192.168.1.1 202.47.4.6 1.2.3.3 "; Console.WriteLine(I... 阅读全文
posted @ 2013-07-02 22:19
liqipeng
阅读(416)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;using System.Net;using System.I... 阅读全文
posted @ 2013-07-02 22:04
liqipeng
阅读(545)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;using System.Text.RegularExpressions;namesp... 阅读全文
posted @ 2013-07-02 22:00
liqipeng
阅读(436)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2013-07-02 21:51
liqipeng
阅读(141)
评论(0)
推荐(0)
摘要:
方法不是很好。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.Text.RegularExpressions;namespa... 阅读全文
posted @ 2013-07-02 21:41
liqipeng
阅读(1760)
评论(0)
推荐(0)
摘要:
参考了网上的文章,具体地址不记得了。下面的方法可以过滤掉虚拟机的网卡等无效网卡,进而只留下真实的网卡。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Mana... 阅读全文
posted @ 2013-07-02 21:38
liqipeng
阅读(2382)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Management;namespace _17获取MAC地址{ class Program { ... 阅读全文
posted @ 2013-07-02 21:34
liqipeng
阅读(633)
评论(0)
推荐(0)
摘要:
照着书敲的。留作笔记吧。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;namespace _18获取本机磁盘... 阅读全文
posted @ 2013-07-02 21:32
liqipeng
阅读(392)
评论(0)
推荐(0)
摘要:
实际是通过c#编程方式调用了CMD命令行,然后调用netstat命令,然后将CMD命令的输出流转到了C#控制台程序上。也可以将结果输出到文件。using System;using System.Collections.Generic;using System.Linq;using System.Te... 阅读全文
posted @ 2013-07-02 21:31
liqipeng
阅读(473)
评论(0)
推荐(0)
摘要:
代码是照着书敲的,贴出来方便平时参考using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.NetworkInformation;namespace _20通... 阅读全文
posted @ 2013-07-02 21:24
liqipeng
阅读(343)
评论(0)
推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2013-07-02 21:13
liqipeng
阅读(87)
评论(0)
推荐(0)

浙公网安备 33010602011771号