On this Page

    -exitWhen

    A file name that will have FM quit processing any more jobs and end as soon as the specified file comes up for processing.

    Syntax

    -exitWhen [EXIT.WHEN|filename]

    Description

    The default value is EXIT.WHEN. The -exitWhen option will cause the same thing to happen as -exitNow but only when the EXIT.WHEN file comes up for processing. By default, if a file named EXIT.WHEN is the next job to be processed, then the FolderMonitor instance will stop and that EXIT.WHEN file will be deleted. You can choose a different filename by setting the -exitWhen option. If you set it to nothing (-ExitWhen="") then this file checking will not occur. 

    This file name must fall into the job file name mask, otherwise it will never be encountered. Given a mask of *.xml, you might wish a name like: ExitWhen.xml.

    See Also

    -exitNow