- 博客(4)
- 收藏
- 关注
原创 可能你没有注意的System.Data.OleDb.OleDbException.Errors属性
每次总是catch(Exception ee){ MesageBox.Show(ee.Message);}昨天晚上看书,发现了fcl里面很多Exception 的继承类,可以提供更多的一场相关信息。今天找了OleDbException ,巴适! catch(System.Data.OleDb.OleDbException ee) { for (int j=0;
2004-09-30 21:00:00 1874
原创 获取对方的mac地址
using System; using System.Runtime.InteropServices; class Program { [DllImport("Iphlpapi.dll")] private static extern int SendARP(Int32 dest,Int32 host,ref Int64 mac,ref Int32 length
2004-09-28 16:26:00 3354
原创 使用WMI获取远程机器操作系统的详细信息
代码主题部分的OperatingSystem类,是使用工具(Management (WMI) Extensions for Visual Studio .NET 2003 Server Explorer http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=62d91a63-1253-4ea6-8599
2004-09-26 19:13:00 4968
原创 网关服务器iptables脚本(过滤蠕虫)
[root@lacl-001 ~]$cat /root/ipt/gatewayservice iptables stopiptables -t nat -A POSTROUTING -s 192.168.103.0/24 -o eth0 -j SNAT --to 202.115.169.56iptables -A FORWARD -m state --state ESTABLISHED,REL
2004-09-26 14:41:00 2045
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人