@echo off
:open
choice /c:123 /m "1:创建,2:终止,3:删除"
if errorlevel 3 goto delete
if errorlevel 2 goto end
if errorlevel 1 goto create

:create
@schtasks /create /tn "FLT_ConsolidationJob" /tr "%cd%\bin\Debug\ConsolidationJob.exe" /sc minute /mo 1
goto close

:end
schtasks /end /tn "FLT_ConsolidationJob"
goto close

:delete
@schtasks /delete /tn "FLT_ConsolidationJob"
goto close

:close

pause

重点在:create, 至于参数的说明, 暂时请百度吧.

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-02-28
相关资源
相似解决方案