Make a job that has a file-watch schedule (when file exists). Use file masks to specify which files to watch (for all files use *.* mask). As soon as one or more matching files found, 24x7 will run the job. Make this job as a job having "JAL script" type. In the job script code a loop to find all matching files and run them one by one Here is one of the possible algorithms FileFindFirst .... LoopWhile found... RunAndWait found_file ... FileDelete found_file (or FileRename or FileMove) ... FileFindNext .... END_LOOP: Another way is to use the Dir statement and Loop with GetToken Please see available job examples and templates for more ideas. : I am evaluating this product and need to know if we can get it to run a file : that appears in a directory. We pass batch jobs from a VAX VMS system to a : directory on an NT box and need to have the job executed on the NT box. : Thanks, : Rod Grossman
|