03 2013 档案
摘要:#region 获取cpu序列号 硬盘ID 网卡硬地址 /**/ /// /// 获取cpu序列号 /// /// string public static string ...
阅读全文
摘要:#region Windows服务控制区 #region 安装服务 /// /// 安装服务 /// private bool InstallService(string NameService) ...
阅读全文
摘要://dosCommand Dos命令语句 语句一&&语句二 语句一执行成功才执行二 public string Execute(string dosCommand) { return Execute(dosCommand, 10); } /// /// 执行DO...
阅读全文
摘要:1. 新建一个Windows服务应用程序 创建项目——》Visual C# 左侧的"+"——》Windows ——》Windows 服务(右侧模板)——》输入名称,确定创建项目 2. 设置Windows服务的属性(Windows服务里没有窗体,所以点击左侧设计器里空白的地方即可在右侧...
阅读全文
摘要:// Displays sending with a connected socket // using the overload that takes a buffer. public static int SendReceiveTest1(Socket server) { byte[...
阅读全文
摘要://发送大量文本消息 private void sendMessage() { if (richTextBox_send.Text.Trim().Length==0 && richTextBox_send.Rtf.Index...
阅读全文
摘要://发送文件 private void btn_sendFile_Click(object sender, EventArgs e) { //打开文件 OpenFileDialog dlg = new...
阅读全文
摘要:namespace Message { partial class Form3 { /// /// Required designer variable. /// private System.Component...
阅读全文
摘要:前提准备:mssql 2008已安装好了一个实例(我按默认情况下安装的实例是:SQLEXPRESS),并安装了SQL Server Management Studio工具。 为了满足可以用(local)或IP地址登录2008,需要以下配置支持: 一、打开“SQL Server 配置管理器”,做...
阅读全文