I have a MRP batch ID running via scheduled tasks. You need to create a batch file and an input file.
batch file should look like this:
c:
cd\MFGbatch
e:\dlc8\bin\prowin32.exe -db <dbname> -ld qaddb -H hostname -S servicename -N TCP -b -d mdy -yy 1920 -trig TRIGGERS -pf c:\MFGbatch\livemrp.pf -ini c:\MFGbatch\batch.svg -p c:\MFGbatch\batchnet.p > c:\MFGbatch\x999net.err
livemrp.pf contains:
-db gui -ld qadgui -H hostname -S service name -N TCP -b -d mdy -yy 1920
-cpstream iso8859-1
-cpinternal iso8859-1
-cprcodein iso8859-1
-cpcoll basic
batch.svg is same as progress.svg except in the PROPATH, point to your MFG Pro character compiled set (depends on your version, ex. MFGNTeB2\USCHARCL).
batchnet.p contains the following lines:
INPUT from c:\mfgbatch\batchnet.inp.
OUTPUT to c:\mfgbatch\batchnet.out.
PAUSE 0 BEFORE-HIDE.
RUN MF.P.
INPUT CLOSE.
OUTPUT CLOSE.
You need to compile batchnet.p, save the .r on the same directory as your batch file and input file. On the scheduled task, just create a schedule for the batch file. This will run the character version of MFG Pro, output the screen displays in batchnet.out and any errors in x999net.err. If during the execution of the batch you noticed it is hanging, check the file size of batchnet.out. If its getting bigger, then some errors on the character code is causing it to run in loop. You need to correct that.
Hope this helps.