Jump to content

Find string in .ini and replace the value in front of it


temp3r
 Share

Recommended Posts

I have a file like this:
 

<random text in here>
<random text in here>
<random text in here>
<random text in here>
WTemail@example.com41609=72978

WT41609=2

WTemail@example.com41610=2978

This file is edited everyday automatically by a program that i run what i wanted was to make a script to edit the first line and find the first string:

WTemail@example.com*=

(the value in front of the email gets automatically raised that's why i used a * for a random value then the = )
And edit the value in front of it to 86400...

Anyone knows how to do it?

I started with AutoIt, and i have no idea how to make it..

Edited by zylor
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...