title: URL Encode in Windows Batch Script
body: <p>I have a Windows batch script that I use to do quick Google searches.  However, I can't figure out how to generically encode special characters.  Like if I try to search for C#, the pound sign breaks it.  Here is my code:</p>
  
  <pre><code>SET q="https://www.google.com/#q=%*"
  SET q=%q: =+%
  chrm %q%
  </code></pre>