Sign in to follow this  
Followers 0
keyser

Help to edit a file ini

5 posts in this topic

Hello

I search to modify a line into a file ini

I have made a script which create all the file ini

But at the end this is not very a good solution

Is there a way to identify a line and then replace it

exemple

param1=0

param2=1

param3=0

param4=0

param5=1

For exemple the script should modify the param4 to value 1

Please help me

I'm sure that power of autoit can do it :whistle:

Regards

Keyser

Share this post


Link to post
Share on other sites



You could try StringReplace :whistle::dance::dance:



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

See the helpfile on IniWrite

HTH :whistle:

Share this post


Link to post
Share on other sites

For exemple the script should modify the param4 to value 1

IniWrite($iniFile, "exemple", "param4", "1")

My UDFs: ExitCodes

Share this post


Link to post
Share on other sites

Thanks for all :whistle:

I have not find this function

May be not well search

Because it is so cool

Thanks again

Keyser

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0