摘要:
使用C#创建一个简单的Windows服务服务功能:在C:\ServiceLog.log中记录服务的开始和停止时间,在指定间隔时间重复执行一些操作,并在C:\ServiceLog.log中记录时间。步骤1:打开Microsoft Visual Studio 2008,新建一个Windows服务;步骤2:打开Service1.cs代码页,输入下边代码;Service1.cs:复制内容到剪贴板程序代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using Sys 阅读全文
posted @ 2013-02-18 14:44
飞天2012
阅读(219)
评论(0)
推荐(0)
浙公网安备 33010602011771号