Answer the question
In order to leave comments, you need to log in
Why does the findstr command return nothing in cmd?
Writing
C:\Users\Melnikov-iv\Desktop>findstr /C:"SID" temp.txt >out.txt 2>error.txt
, Answer the question
In order to leave comments, you need to log in
Before findstr
execute:
rem Перекодировка файла в UTF-16 c BOM(!) в текущую кодировку консольного окна
cmd /a /c type temp.txt >temp2.txt
move /y temp2.txt temp.txt
findstr
use instead find
:find "SID" <temp.txt >out.txt 2>error.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question