Returns the name of the configuration file for this executable.
Missing <returns> documentation for M:serial.Utils.getCfgFileName
The name of the configuration file is build using the following rules:
Environment.SpecialFolder.ApplicationData
. For example for Windows CE/Mobile it is \Application Data
, for a german version of Windows XP it is %UserProfile%\Anwendungsdaten
and for Mono running on Unix it is $HOME/.config
. If the special folder for Application Data is not defined (shouldn't happen, but on broken .NET implementations it may be sometimes the case), then the directory of the exe file is used as fallback instead. Warning! If the directory doesn't exist, it should be created first manually. Else none of the applications in this package will be to store and read their settings and they will always appear with the default settings. The programs don't usually create these directories by themselfes. c:\Program Files\serial\sgps.exe
running on a german version of Windows XP the name of the configuration file will be constructed as %UserProfile%\Anwendungsdaten\sgps.cfg
, %UserProfile%
usually points to c:\Documents and Settings\%USERNAME%
on an english and c:\Dokumente and Einstellungen
on german desktop versions of MS WIndows.
Utils Class | serial Namespace