title: Write windbg command output to file, but not console
body: <p>In windbg, I'm looking for a mechanism to take the output of a command (specifically, a command inside of a breakpoint) and have it appended to a file, and <em>not</em> written to a console.</p>
  
  <p>Currently I setup the process with <code>.logappend C:\path\to\log</code> and then enable a few breakpoints with:</p>
  
  <pre><code>bp WIN32U!{function} ".echo '===WIN32K-START==='; k; .echo '===WIN32K-END==='; g"
  </code></pre>
  
  <p>This works great, except the volume of output written to the console causes serious performance issues. I'm hopeful there's a way to get the same output to my log file, without the overhead of writing to the windbg console.</p>