1.

Solve : Search en replace text in files?

Answer»

Hi there, I'm here for asking a quite complicated script, I tried it for myself some thime but I can't write a good one. So perhaps you guys can help me. I would like to create a batch file that search (in the same FOLDER where the batch files stands) - in all files with the extention .html - at the FOLLOWING text in the files: menu=new obj("menu^^2^+^4^+^17^+^12^+^8.2^+^17^+^Arial^+^cccccc^+^f0f0f0^+^ffffff^+^000000^+^999999^+^ffffff^+^n",new obj("info^^^^^^",)

and replace it by -example-: testCan you use [highlight]WinGrep[/highlight]?
This what it's designed for:

Quote

Windows Grep is a tool for searching files for text strings that you specify.

Although Windows and many other programs have file searching capabilities built-in, none can match the power and versatility of Windows Grep.

The PROGRAM combines the power and flexibility of traditional COMMAND line grep utilities available on DOS, UNIX and other platforms with the ease of use of Microsoft Windows.

In addition to searching, Windows Grep also performs global replacing in your files, with complete safety.

Windows Grep is designed for searching plain-ASCII text files, such as program source, HTML, RTF and batch files, but it can also search binary files such as word processor documents, databases, spreadsheets and executables.
I want to do it in BATCH


Discussion

No Comment Found