set serviceName=IMCS.CCS set serviceFilePath=E:\dev\IMCS_CCS\IMCS_CCS\bin\Debug\netcoreapp3.1\IMCS.CCS.exe set serviceDescription=IMCS.CCS 定时任务对象 描述 sc create %serviceName% BinPath=%serviceFilePath% sc config %serviceName% start=auto sc description %serviceName% %serviceDescription% sc start %serviceName% pause