Previous Table of Content Next

Command Line Parameters and Configuration Files

A program like m3w can be configured to fit many different situations by means of parameters. A complete list of the different parameters appears below. There are many different ways to specify a value for a parameter: It can receive a default value, it can receive a value from the command line, it can get a value from a configuration file, or it can be set in a Dialog Window.

This is the complete sequence of actions:

  1. When the program starts, all parameters are assigned a default value.
  2. If a file named default.m3w exists in the same directory as the file m3w.exe, this file is read in as a (global) configuration file assigning new values to some or all parameters.
  3. If a file default.m3w exists in the current working directory, this file is read in as a (local) configuration file assigning again new values to some or all parameters.
  4. Parameter values given on the command line are assigned in the given order from left to right.
  5. If one of the command line parameters is a configuration file, this file again is read at exactly the position given in the command line. Subsequent parameter settings on the commandline will overwrite settings in this configuration file.
  6. As a special case, m3w can be started by double clicking on a configuration file in the windows explorer. In this case, this configuration file is passed to m3w as a command line argument and m3w will read it as specified in 5.
  7. Once the program runs, the File Menu can be used to Open a configuration file and assign parameter values.
  8. Configuration files can be dropped onto m3w. This will cause the configuration file to be read, assign parameter values similar to the Open File Menu entry.
  9. Finally, using the different Dialog Windows accessible through the Options Menu, parameter values can be changed directly.

Now here is a list of all the parameters, their names, their significance, and their admissible values. For a more detailed description of the meaning of all these options, consult the appropriate section on Dialog Windows. Some Parameters, like for example the soundcard or the genre of an ID3 tag, have as a value a number which is just some internal quantity. The best way to find out what the appropriate number will be is to use the m3w program and the dialog windows to set the parameter to the desired value and then store the setting in a configuration file. This, by the way, is the reason why these internal quantities are included among the command line parameters: to be able to save all the settings, be it as a commandline or a configuration file, and restart m3w at a later time with exactly the same settings.

Notice that for all parameters there are two names, a short one and a long one. The long one is used in configuration files and, if used on the command line must be prefixed by two hyphens, the short one can be used only on the command line and is then preceded by a single hyphen.