You are here: Available Utilities > M > MRGCHK

MRGCHK

Use this utility to check all the print files you designate and output the resources used in those files into a text file you specify. Use this utility and the MRGADD utility to get information about Documerge Metacode and AFP print streams.

This utility can detect Metacode files that have improper formats, such as if the files are not 4-byte variable blocked (MRG4 format). The utility issues an error message if such a file is detected.

Syntax

MRGCHKW /I /L /P /N /X /A /R

Parameter

Description

/I

Use this parameter to specify the print files you want to scan for resources. You can use wildcard, such as *.met.

/L

Enter the name of the output file where you want the utility to put the resource list. The utility returns the information in a comma-delimited text file. The file is placed in the directory from which you are running the MRGCHK utility.

/P

This is the printer type to be used from the INI file. MRGCHK automatically uses the FSISYS.INI so you must designate which printer information to use.

/N

(Optional) You can use this parameter to specify an INI file. The default is the FSISYS.INI file.

/X

(Optional) Use this parameter to check for font names instead of just checking the font directory from the INI file.

/A

(Optional) Use this parameter to tell the utility to load an existing output file and append new resources to it; otherwise, the output file is overwritten. Existing resources are not duplicated so using this option gives you a growing list of resources.

/R

(Optional) This parameter outputs all resources regardless of whether they are found within the setup. Use this option only if you want to have a concise list of resources and are not using the output file with the MRGADD utility.

Omitting this parameter means only the resources that were not found in the fonts directory or in the FXR are included in the output file.

Examples

Here is an example:

mrgchkw.exe /I=*.met /L=resource.txt /P=XER

This example will search for all MET files in the forms library using the XER PrtType from the FSISYS.INI file and will list the resources that were not found in the file named RESOURCE.TXT.

Here is another example:

mrgchkw.exe /I=*.met /L=resource.txt /P=XER /N=fapcomp.ini /X=rel121.fxr /A /R

This example would find all the resources used by all the MET files in the forms directory using the XER printer found in the FAPCOMP.INI file. It would append those resources to an existing file named RESOURCE.TXT.