How to delete text from a text file via batch -


have looked web cant find can help. trying make page can delete of page. have managed make search can tell if word on .txt file. how put this?

cls set /p search= please enter want for?  /f "delims=" %%a in (test.txt) (  set find=%%a  )  if %searchs%==%find% goto flight has arrived echo not able find %search% pause goto start 

does know should do?

thanks, alex

type file|find "string in lines remove" /i /v >newfile 

might help.
set /p reg=text:
for /f "delims=" %%i in (file.txt) if %%a'==%reg%' goto found
can't tell want though if doesn't please elaborate.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -