I found out that my batch script is not working properly. I wanted to write a function which deletes specific line in a file, this is my code:
:unmark
type %MARKPATH% | findstr /B /V %1 > %MARKPATH_COPY%
GOTO:EOF
Yes, it works, but it writes new content (without specific lines) in a new file. But instead of it, I want to overwrite an existing file. Like that:
:unmark
type %MARKPATH% | findstr /B /V %1 > %MARKPATH%
GOTO:EOF
But it's not working, file is empty after code execution. Can you help me figure out what is a problem and how to solve it?