安裝指令
//安裝services
sc create "service_name" binPath="service_location" [start=boot|auto|delayed-auto|disabled|demand] [displayname="display_name"] [depend="another_service1"/"another_service2"]
參數
** [start] **
- default 為demand
- boot意思是指先等待 device driver 載入完成後啟動
- delayed-auto意思是指先讓其他serivces執行完成後啟動
** [depend] **
- 啟動前必須啟動的service,如多於1個用「/」作分隔
解除安裝指令
//解除安裝services
sc delete "service_name"