Skip to main content

It is possible to run file conversion as a batch?

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Is there any way to run the file conversion process from the command line in a batch job. Conversion of many data files with the tool can be easier and more reliable when done within a batch job.

Resolution:

This can be done using the following command line:

run dfconv profile-fname [input-fname] [output-fname]

where:

profile-fname is the name of the profile file that contains the details of the task you want to perform.  

input-fname  is optional and is the name of the input file.  

output-fname  is optional and is the name of the output file.

The input and output file-names are optional as they can be extracted from the profile file. If you specify file-names on the command line as well as in the profile file, those on the command line take precedence.

After conversion, the operating system error level ERRORLEVEL is set to non-zero if an error occurred during conversion. If you are running the conversion from a batch file, you can interrogate this to determine what action to take after the conversion.

Old KB# 5261

0 replies

Be the first to reply!