摘要:
创建的Service:WinServiceDemo1、建立Windows Service 项目,如MyWinService,编写代码实现你要实现的功能。如下view plaincopy to clipboardprint?string fileName = @"e:\test\WinService.log"; protected override void OnStart(string[] args) { // TODO: 在此处添加代码以启动服务。 File.AppendAllText(fileName, "WinServiceDemo已经启动", Encoding.Default) 阅读全文
posted @ 2010-12-24 22:12
Black Bean
阅读(630)
评论(1)
推荐(1)
浙公网安备 33010602011771号