Appendix D. Command-Line Switches

Configuration Directories

SpamSpector stores its configuration files in the user profile, or failing that in it's own installation directory. Advanced users who wish to alter this can do so by specifying an alternative directory on the command-line using the -configdir switch. For example:

SpamSpector.exe -configdir C:\myDir\mySpamSpectorConfigDir

If the specified directory does not exist, it will be created.

Multiple Instances

Normally, you can only run one invocation of SpamSpector at a time. If for some reason you want to run multiple copies of SpamSpector on the same machine (for e.g., if you want to listen on two different ports with a different configuration on each), you should add -allow_multiple_instances yes to the command-line, e.g.:

SpamSpector.exe -allow_multiple_instances yes

If you only want to run one version of SpamSpector, but don't want to see an error message if you should try to run a second (e.g. if you're starting it from a batch file that may get run multiple times), you can use the option -suppress_multiple_instances_warning yes, ie:

SpamSpector.exe -suppress_multiple_instances_warning yes

Obviously, combining these two command-line options would make no sense at all.

Tray Icon

SpamSpector will put a small icon in the system tray to allow you to access its configuration options. If you don't often use this icon and you don't want it cluttering up your tray, use the command-line option -trayicon none, e.g.:

SpamSpector.exe -trayicon none

Of course, if you do this then to access SpamSpector's configuration you will have to exit it from the task manager and restart it without this option on the command-line.

Previous Chapter: Credits Table of Contents