You can use more advanced batch commands to add flexibility to your
batch encoding.
To encode all files in a directory and move the resultant files to
another folder, you could write a batch file called EncodeAll.bat which
contains:
REM Process all .avi files in this folder
FOR %%j IN (*.avi) DO Call EncodeFile %%j
EncodeFile.bat can contain:
REM Encode Each file using the Custom.ini
copy Custom.ini MpegRep.ini
MpegRep %1
REM Move the resultant file to the k:\Output folder
move *.vbs k:\Output\%1
If your directory contains all of the dll and
exe application files, the above two batch files, and your source files,
calling EncodeAll.bat will call the EncodeFile.bat for each AVI file
in your directory. The
EncodeFile.bat will encoded the AVI file using the custom.ini parameters
and then copy the resultant file (which can be named with the same AVI
prefix but with .vbs extension.)