You are here: Reference Manual > FME Server Console > Modes > Batch-File Mode

Batch-File Mode

The batch-file mode reads a user-created text file containing one or more directives and runs them one after the other. The file must contain one directive per line.

Directives can span multiple lines by using the "\" line continuation character at the end of an incomplete line.

The "#" character at the beginning of a line indicates a line to be skipped, such as a comment line.

Examples

The following line runs the FME Server Console in batch mode with batch.txt as the input file containing the commands to perform:

fmeserverconsole.exe -f batch.txt

Sample batch file:

# This line won't be read

# but the next line will be.

LISTALL_REPOSITORIES

# The next command is split across 2 lines

ADD_REPOSITORY myRepository \

"my description"