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:

fmeserverconsole.exe -f batch.txt

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

Sample batch file:

# These 2 first lines won’t be read

# but the next line will be.

ADD_WORKSPACE municipal z:\workspaces\municipal\eastside\sewers.fmw

# The next command is split across 2 lines

municipal/sewers.fmw \

-description "All municipal sewers"