I'm trying to automate a small batch file to find and return a specific string of characters within several folder within a sub folder...
here is my code so far
@echo off > collection.txt
for /f %%a in ('dir /ad /b /s') do (
for %%T in (%%a/_cards.dat) do (
find "id=" < %%T >> collection.txt))
the program is currently looking in the active folder in all subfolder then find all files named "_cards.dat" then find all line begining with "id=" and returning them... the result is a file named collection.txt that look more or less like the following:
So I would like to produce the same file but without having the "id=" in front of the id...
I try something like
but it does not want to work... So at the moment i use words to find and replace but it's pretty anoying since I need to produce this file quite offen
Any ideas ?