title: How to suppress specific lines in Windows cmd output?
body: <p>On Windows, I have written a simple bat script that calls another tool. However, this tool outputs a few specific debug lines when using certain options (seems to be a bug in the original code, which I can not/don't want to modify). </p>
  
  <p>Is there a way to suppress lines output by a command that matches a certain pattern (like starting with <code>DEBUG:</code> )?</p>
  
  <p><em>(FYIO: the tool is <code>latexdiff.exe</code>, and there are some <code>print STDERR "DEBUG:...</code> lines in the <a href="http://mirrors.ctan.org/support/latexdiff/latexdiff" rel="nofollow">perl source code</a> that are not conditional to the <code>debug</code> variable and printed everytime the <code>--flatten</code> option is used. I don't want to suppress stderr completely either.)</em></p>