Quartz Scheduler - 未运行任务

时间:2010-05-10 21:34:44

标签: scheduled-tasks native quartz-scheduler

我正在使用Quartz API安排任务。我尝试安排notepad.exe,在日志中,我看到以下行 -
org.quartz.jobs.NativeJob runNativeCommand关于runcmd.exe / C c:/WINDOWS/notepad.exe ...

但是记事本还没有上来。任何exe或批处理文件的问题也是如此。 我还在任务管理器中看到notepad.exe作为正在运行的进程。

代码: -

JobDataMap map = new JobDataMap();
map.put(NativeJob.PROP_COMMAND, "c:/WINDOWS/notepad.exe");

0 个答案:

没有答案
相关问题