|
#1
|
|||
|
|||
Insert new key into appSettings.config
I want to be able to add a new key to the appSettings.config file. I can do the write xml and update existing entries no problem, but cannot add new lines? Any help would be much appreciated.
For example: Before the add: <appSettings> <add key="DatasourceConnection" value="server" /> </appSettings> After New Key added: <appSettings> <add key="DatasourceConnection" value="server" /> <add key="LDAPBinding" value="NEW KEY" /> </appSettings> |
#2
|
|||
|
|||
You would need to call MSXML directly to insert an element like that.
http://technet.microsoft.com/en-us/m...iptingguy.aspx |
#3
|
|||
|
|||
This is now supported in v8.6. See the attached sample.
|
#4
|
|||
|
|||
Thanks for the quick response and I'm glad its been added to the latest release because I was having issues with the VB Script method. I will update my post as soon as I upgrade and test this out.
Thanks |
|
|