创建服务
--创建服务
sc.exe create MarkUploadFileWorkerService binPath=C:\Projects\MarkUploadFileService\MarkUploadFileWorkerService\bin\Debug\netcoreapp3.1\MarkUploadFileWorkerService.exe
--添加服务描述
sc.exe description MarkUploadFileWorkerService "Laser Mark导入SUT数据库服务"
--查询服务
sc.exe query MarkUploadFileWorkerService
--启动服务
sc.exe start MarkUploadFileWorkerService
--停止服务
sc.exe stop MarkUploadFileWorkerService
--删除服务
sc.exe delete MarkUploadFileWorkerService