I am looking for a sample script that I can use in my custom module's execute method that will allow me to write to the opentext.ini file.
Thanks,
writing to opentext.ini file?Posted bybehzad.khosa@ivv.nasa.gov (Khosa, Behzad)On 2010/03/24 10:13?I am looking for a sample script that I can use in my custom module's execute method that will allow me to write to the opentext.ini file.Thanks,[To post a comment, use the normal reply function]Forum:Content Server Builder ForumLivelink Server:knowledge-wlweb01
Looks like your code adds a section in opentext.ini, but in my case the section already exists and I just want to add a parameter or value e.g in [Quicklinks] section.
without double checking, I think AddPref will Add or Update, although you could check first, then delete then add using the following methods in the same place :
Function Integer AddPref( String section, String prefName, String prefValue ) Add a preference (returns FilePreferences.OK if successful) Function Integer DelPref( String section, String prefName ) Delete a preference (returns FilePreferences.OK if successful) Function String GetPref( String section, String prefName, String defaultValue ) Get a preference -- returns value if found, Undefined otherwise...