[转载]http://www.cnblogs.com/hfzsjz/archive/2011/01/07/1929898.html C# 创建系统服务并定时执行 1.新建项目 --> Windows 服务2.Service1.cs代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using Syst…