config
Synopsis
netid.exe -config [set <arguments>] [get <arguments>] [merge <arguments>] [delete <arguments>]
Description
Net iD Client can handle two different types for configuration:
-
Windows INI format
-
Windows Registry
The implementation is not limited to internal configuration. It is also possible to modify by using the options set, get, merge, and delete.
Options and arguments
- path
-
The most important argument is
path
. The path is either the full path to a file or the full entry to the registry. The system automatically detects what type of value it is.$ netid.exe -config set -path C:\Temp\aaa.cfg …
$ netid.exe -config merge -read C:\Temp\aaa.cfg -write C:\Temp\aaa.cfg …
$ netid.exe -config delete -path C:\Temp\aaa.cfg …
set
To set or update a value, specify it by using the options section, entry, and value, as they are described in section Configuration.
Update the section AAA
and entry aaa
with value 112233
.
[AAA]
aaa=112233
$ netid.exe -config set -path C:\Temp\aaa.cfg -sections AAA -entry aaa -value 112233
To update a data value, specify name and value.
- name
-
Name of data file.
- value
-
Full path to file.
$ netid.exe -config set -path C:\Temp\aaa.cfg -name data.bin -value C:\Temp\data.bin
get
To read a data value, specify name and value.
- name
-
Name of data file.
- value
-
Full path to file.
$ netid.exe -config get -path C:\Temp\aaa.cfg -name data.bin -value C:\Temp\data.bin
merge
To merge two different configurations, the path read is the configuration that will be read and all those values will be overwritten for the path write. The result is stored in the write path. You can limit the number of read sections.
$ netid.exe -config merge -read C:\Temp\aaa.cfg -write C:\Temp\aaa.cfg -sections "Language;Install"