Can you please elaborate how the batch file can be run as a policy and why this might be preferable?
One step in the batch file is to create a sentinel file. I then check for this in the following filter command. There seems to be no delay in the filtering process, so this suggests to me that the batch file has been run, but I should probably check this again.
This is a .bat file, so I presume that it is using command.com.
There may be an issue about directory paths. I am not using full path-names for some of the files, as they are in my MERCURY directory. An example of this is that I am using the relative name for the Unix utilities (which reside in the MERCURY directory, e.g. wbin\grep "From: " C:\MERCURY\MessageFile.txt, rather than C:\MERCURY\wbin\grep "From: " C:\MERCURY\MessageFile.txt. I will try the full path-name in all cases.
Thank you
Gordon