在c#中创建Windows服务 [英] Create an Windows service in c#

查看:77
本文介绍了在c#中创建Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个Windows服务,当我启动服务时,它必须在我的本地系统中创建一个文件夹。任何人都可以给我任何想法吗?

解决方案

有什么想法?



基于虚无这是你的问题,我首先看一下 Google 并搜索类似创建一个Windows服务的内容C#。我已经阅读了数百万篇关于如何创建Windows服务的教程。



之后我会重新访问Google 这次我会搜索:

C#创建目录



或者我会看一下 MSDN上的目录类 [ ^ ]



希望能帮助您完成目标。



我建议你花5分钟阅读代码项目快速解答常见问题解答 [ ^ ]这样你就可以提出更好的问题TURE。

I need to create an windows service, when i start service it must be create an folder in my local system. Can any one give me any idea?

解决方案

What sort of idea?

Based on the nothingness that is your question, I'd start with looking at Google and searching for something like "Create a windows service in C#". I'd read the millions of tutorials that are out there talking through how to create a Windows Service.

After that I would revisit Google and this time I would search for:
"C# Create a Directory"

Or I would look at visiting Directory Class on the MSDN[^]

Hope that helps you complete your objectives.

I would suggest you take 5 minutes and read the Code Project Quick Answers FAQ[^] so that you can ask better questions in future.


这篇关于在c#中创建Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆