right at the top of windows.txt:
-createconfig / -cc
   Creates the default MAME.INI file. All the following configuration
   options can be permanently changed by editing this configuration file.
-showconfig / -sc
   Displays the current configuration settings. If you route this to a
   file, you can use it as an INI file. For example, the command:
      mame -showconfig >mame.ini
   is equivalent to -createconfig. 
 
     
    