Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have many txt files inside a folder and I want to replace/remove some characters in them. I want to remove "{", "}", and want to replace "*^" by "E" (here *^ has to be together).

Is there a way to do this in a batch? I am now doing one by one which is really time consuming. I am using Windows 7.

Thank you.

share|improve this question
up vote 4 down vote accepted

I'm guessing you mentioned "batch" simply because you're looking for a way to automate this and thought a batch file might be the best solution. Well it isn't, so unless you specifically need to use a batch file (in which case I'll modify/delete this answer), use a better tool for the job instead such as Notepad++ (or any other comparable full-featured text editor):


There are many other programs whose sole job is text search/replace, for example grepWin:


share|improve this answer
Thank you for the Notepad++. It's really convenient. – Patrick Li May 11 '13 at 3:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.