哥伦布

博客园 首页 新随笔 联系 订阅 管理

使用管理员权限启动cmd.exe

安装服务

sc.exe create ".NET Joke Service" binpath="C:\Path\To\App.WindowsService.exe"
如果需要更改根目录,可以把目录作为命令行参数送入:
sc.exe create "Svc Name" binpath="C:\Path\To\App.exe --contentRoot C:\Other\Path"

配置服务

image

posted on 2023-04-13 09:34  Caraxes  阅读(87)  评论(0)    收藏  举报