安装:

sc create PDW.CHM.WebAPI binPath= "%~dp0PDW.CHM.WebAPI.exe" start= auto
sc start PDW.CHM.WebAPI
pause

卸载:

sc stop PDW.CHM.WEBAPI
sc delete PDW.CHM.WEBAPI
pause

启动:

sc start PDW.CHM.WEBAPI
pause

停止:

sc stop PDW.CHM.WEBAPI
pause

05-02 12:10