Commands for various Windows application utilities
|delete_inifile_key SECTION KEY ?-inifile FILENAME?|
|delete_inifile_section SECTION ?-inifile FILENAME?|
|read_inifile_key SECTION KEY ?options?|
|read_inifile_section SECTION ?-inifile FILENAME?|
|read_inifile_section_names ?-inifile FILENAME?|
|write_inifile_key SECTION KEY VALUE ?-inifile FILENAME?|
This module provides commands commonly required in Windows applications.
The following commands relate to the command line for the process. The difference over Tcl's built-in ::argv variables is that these commands handle Unicode command lines and use Windows conventions for argument parsing.
|get_command_line||Retrieves the command line passed to the process.|
|get_command_line_args||Parses a command line using Windows conventions.|
The following commands deal with INI files used for storing application preferences. Note these commands take into account INI file mappings set up in the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping registry key.
A cross-platform package that provides similar functionality is available in the available in the tcllib standard library. However, that does not take into account the registry mappings on Windows platforms.
|read_inifile_key||Returns the value of a key.|
|write_inifile_key||Updates the value of a key.|
|delete_inifile_key||Deletes a key and associated value.|
|read_inifile_section_names||Returns the names of all sections in an INI file.|
|read_inifile_section||Returns the keys and values within a INI file section.|
|delete_inifile_section||Deletes an entire section from an INI file.|
|-default DEFAULTVALUE||If the key is not found in the section, the command returns DEFAULTVALUE instead of an empty string.|
|-inifile FILENAME||By default, the command looks up the win.ini file in the system directory. This option may be used to look up a different INI file instead.|
Copyright © 2004-2012, Ashok P. Nadkarni