jmiklg:
In that case, then you'd just pass the process number in the args list, and then your batch file could get it. For example, given this as the batch file:
@echo off
rem
rem do_nothing.bat <SrcDir> <DstDir> <ProcID>
rem
echo Source Dir: '%1' >D:\MYTEMP\JOB.OUT
echo Dest Dir : '%2' >>D:\MYTEMP\JOB.OUT
echo Process # : '%3' >>D:\MYTEMP\JOB.OUT
So if your job starts the batch file properly, then after it executes, you should find the file D:\MYTEMP\JOB.OUT containing the argument values you passed in. So is your difficulty on the DOS/Win batch file side or in starting the job?
...roboticus
When your only tool is a hammer, all problems look like your thumb.