Command line options

DTM Flat File Generator supports following command line switches:

-c - console mode*.

-<N> - force use N CPU/cores mode.

Also, you can use one or more project names as a command line parameter(s). If the user provides a few project files in console mode the will be executed sequentially.
Example: FlatFileGen.exe -c d:\project1.ffgp d:\project2.ffgp d:\project3.ffgp

* - the console mode is a mode when the program doesn't open any dialogs and doesn't need any interference from the user. A project file for the console mode must be prepared and tested beforehand. If necessary, the program will use the recent database connection in console mode. This mode enables you to integrate the product with the Windows task scheduler as well as to execute projects prepared beforehand according to the schedule.

Console Mode Return Codes

The console mode returns a few codes. These codes can be used in batch files. There are:

  • 0 - project executed successfully
  • 2 - could not find or get access to project file
  • 4 - could not restore default connection
  • 8 - could not prepare output file
  • 10- data generation error; check engine calls parameters or syntax