I am trying to use a simple batch file to perform some scripting to run a java program in a loop,

```
for %%f IN (*.txt) DO (
    java abc %%f > %%f + "[parsed].txt"
)

```

The program reads all the text files in the current directory and runs a java program. I want to store the output of each of these files into a new text file with `[parsed]` being appended to the name.
Example: if the input text file is `test.txt` then the output should be stored in `test[parsed].txt`.
The code that is written above has a syntax error and I am not being able to work around it using variables.
Please help!