ok, i've got the folder..
C:\test\
in there it has
1.txt
2.txt
3.txt
4.txt
5.txt
~
1000.txt
some contain the word 'bledd' and I want to delete them.
i've used findstr like this..
findstr /I /S /M bledd *.* >c:\output.txt
that created output.txt, and in that file it says..
in the same bat file, how can I get it to delete all the files listed in output.txt?
my 'ghetto' way of pasting the contents into column b in excel, then filling a with del /q and pasting it all back into notepad just won't do this time
C:\test\
in there it has
1.txt
2.txt
3.txt
4.txt
5.txt
~
1000.txt
some contain the word 'bledd' and I want to delete them.
i've used findstr like this..
findstr /I /S /M bledd *.* >c:\output.txt
that created output.txt, and in that file it says..
Code:
1.txt
5.txt
680.txt
999.txt
in the same bat file, how can I get it to delete all the files listed in output.txt?
my 'ghetto' way of pasting the contents into column b in excel, then filling a with del /q and pasting it all back into notepad just won't do this time

Last edited: