Jump to content

string search and replace/add


Recommended Posts

hello. im a beginer at autoit so i need some help.

i have multiple files in one folder. in each file, between the lines i have some lines that look like this

task = task0013

some other lines 

task = task6435

and so on. 

the number after string task are not in ascendin or descending order. Now in another file "A" that is located in other folder i have the name is each of those taskxxxx, it looks like this

[task0013]
name=whatever
[task6452]
name=...
.................
 
what i want to do is a script that will search in each file for task(xxxx) then search in the file "A" for same string and replace in the first file from folder so it will look like this
 

task = task0013

name=whatever

some other lines 

task = task6435

name = ...

I hope u guys understand , i dont know how else to explain. Thank you

 

Link to comment
Share on other sites

Can you post what you have done so far script wise?

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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...