A line of code like

For Windows

rem ErrorFile: %1.err

For Linux/UNIX

# ErrorFile: "$1.err"

included in the .bat file means that the given filename is the error file. At the end of the execution of the .bat file, if the errorfile does not exist or is zero, execution is considered to be successful. If not, an error window appears and the contents of the error file are considered to be the error message. If this line exists, GiD will delete this file just before calculating to avoid errors with previous calculations.

A comment line like

rem WarningFile: %1.wrn

or

# WarningFile: "$1.wrn"

included in the .bat file means that the given filename is the warning file. This file stores the warnings that may appear during the execution of the .bat file.

Errors when executing an external program