Script to open up .ini file, make changes, then save
Posted on 2010-08-22
i have an application that requires manually edits to an .ini file in order to turn on debug level logging. I would like to have a script that can do the following steps, and another script to reverse the changes.
-stop specified services
-open .ini file
-change 3 entries in the .ini file
-save the file
-start the service back up.
Note: the three entries that need to be updated are
Debug=0 to Debug=2
wantLogs=false to wantLogs=true
wantTimings=false to wantTimings=true
WantVerbose=false to wantVerbose=true