建立服務.batspa
@echo.服務啓動...... @echo off @sc create BestoneProductEditSvc binPath= "D:\winSvc\BestoneProductEditSvc\BestoneProductEditSvc.exe" @net start BestoneProductEditSvc @sc config BestoneProductEditSvc start= AUTO @echo off @echo.啓動完畢! @pause
刪除服務.batcode
@echo.服務刪除 @echo off @sc delete BestoneProductEditSvc @echo off @echo.刪除結束! @pause
BestoneProductEditSvc:服務名
binPath:程序目錄