Table of Contents |
---|
| outlinh1. true |
---|
| outlinh1. true |
---|
1 | printablefalse |
---|
2 | stylh1. none |
---|
3 | indent20px |
---|
|
JobScheduler can monitor file creation, file deletion, file changes and timestamp changes (aka file events) with a (standalone) job and with an order (and a job chain). In this article the filewatching using a standalone job is described.
For further information on how to use file events with a job chain we recommend reading Directory Monitoring with File Orders.
...
Code Block |
---|
|
<job name = "scheduler_file_notification_1">
<script language="shell">
<![CDATA[
set
echo %SCHEDULER_JOB_NAME%
echo %SCHEDULER_TASK_TRIGGER_FILES%
rem del %SCHEDULER_TASK_TRIGGER_FILES%
]]>
</script>
<start_when_directory_changed directory = "c:/temp" regex = "^file[1|2]\.xml$"/>
</job>
|
...