Would <cfschedule> help you with this?
You can create a schedule at end of the first program, which pointed to the second program. So the second program automatically scheduled in to X min form the run time of the first program. Or you can have the second program running on your server every X number of minute, all around the day, checking if the file exists, if so scan it. You can make some sort of a mark on the file (rename the file or move it to some other folder or database entry or something), so it won’t re-scan in the next run.
Why do you not just have the initial batch file kick off the second once it's created the xml?
An alternative to using CFSCHEDULE or a directory watcher event gateway is to simply have your batch file call a CF page using wget or cURL.
Dave Watts, CTO, Fig Leaf Software
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
Erm, not to be confused with exactly what I just said