I require a vb script to append values to the variable in the ini file.

C:\program files\A.ini

A.ini is having below information.


I require a script to append "yy" value to "x" variable which is shown like below

One more thing.. we dont know how many values will get assigned to "x". But finally we need to append our value during installation of our application.

Can any body helps on this script....

Thanks in advance

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Lesson One:
- Try to avoid re-inventing the wheel.
Search AppDeploy for 'clsINI'. If you can't find it, you can download the original class pack from JSWare (Google it).
Use the INI class function GetSectionValues or GetINIValue to get the value data.

- Once you have the value string for 'x', you can employ simple string concatenation to create the new data, then call WriteINIValue.
Answered 07/11/2011 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity