|Contents of filem.txt|
Contents of dirm.txt:
I use this code to remove the 1st line from filem.txt but am unable to remove part of the second line so that only the directory name gets removed:
for /F "tokens=*" %%A in (dirm.txt) do (
SET /A vidas=!vidas! + 1
findstr /x /v %par1% filem.txt >> z1.txt & del filem.txt & rename z1.txt filem.txt
How can I use findstr so that it removes e:\bad\a\ and leaves only the word b2.jpg in filem.txt. Tried a lot of conbinations, none worked.