If you are running SAM Pro functions such as web services, scheduled event manager, or scheduled report manager with an agent type user, you will probably wish to start the agent with a .bat file. The .bat file will in turn reference a .txt file specifying the appropriate switches and parameters.
Include the following in your .txt file to suppress messages to the screen and instead write them to a log file:
-messageBoxSuppress=yes
-messageBoxLog=path\filename.log
Where filename is replaced by the pathname of the log file to be generated (e.g., reportanywhere.log or scheduledevents.log).
Example:
-messageBoxLog=\\sampro\docs\logs\report.log