(Platform: Win7) I am able to directly save the output of what "findstr" command find.
findstr /S /N "#ifdef" *.cpp >D:\Test\123.txt
and the output looks like this:
dealloc.cpp:3:#ifdef 1
But I just can't to make it save in the format like
file name:dealloc.cpp line:3
how do I add the string "file name:"before the file found by findstr command and add string "line" before that number? Thanks in advance!