- 博客(5)
- 收藏
- 关注
转载 获取IP
private string GetIP() //get local ip { IPHostEntry tempHost = new IPHostEntry(); tempHost = Dns.Resolve(Dns.GetHostName()); if(tempHost.Addre
2008-07-06 20:27:00
393
转载 求关机、重启、注销代码
重启使用WMI,网上代码很多。 估计注销也可以使用WMI。 关机使用调用API的类如下: using System; using System.Runtime.InteropServices ; namespace OffComputer { /// /// Offcomputer 的摘要说明。
2008-07-01 17:07:00
388
转载 使用Windos API实现远程屏幕信息获取
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Runtime.InteropServices
2008-07-01 17:05:00
464
转载 客户端上传记事本到服务器端的指定的文件夹
下面的代码示例创建并连接一个套接字。文件“test.txt”位于本地计算机的根目录中。在此示例中,我们将创建数据的预缓冲区和后缓冲区,并将它们随该文件发送到远程主机。在此,使用了默认的 TransmitFileOptions。 C# 复制代码 // Establish the local endpoint for the socket.
2008-07-01 16:49:00
454
转载 导出为EXCEL
public void excelout(string 查询语句, string 标题) { Microsoft.Office.Interop.Excel._Application excel; Microsoft.Office.Interop.Excel._Workbook xbk;
2008-07-01 16:47:00
305
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人