Windows 下 exe 服务注册到 service 服务中
添加服务
sc create "Service name" binpath="D:\vv_test.exe" start=auto
删除服务
sc delete "Service name"
开启服务
sc start "Service name"
sc create "Service name" binpath="D:\vv_test.exe" start=auto
sc delete "Service name"
sc start "Service name"