title: Running log parser in a batch file issues with -i:EVT switch
body: <p>I am having unexpected errors while trying to execute a batch file using logparser. </p>
  
  <p>I know that colons are used as labels in a batch file and that double colons are used for commenting. But what happens when a colon : appears in a switch like this:</p>
  
  <pre><code>for /f "tokens=1,2 delims=," %a in (servers.txt) do "C:\Program Files\Log Parser 2.2"\logparser -i:EVT "SELECT TimeGenerated,EventID,EventType,SourceName,ComputerName,Message FROM \\%a\%b WHERE TimeGenerated &gt; TO_TIMESTAMP(SUB(TO_INT(SYSTEM_TIMESTAMP()),118800))AND EventID BETWEEN x AND y ORDER BY TimeGenerated DESC" -stats:OFF 
  </code></pre>
  
  <p>If i run the logparser command directly, it runs fine. But run in a batch file is gives:</p>
  
  <p>"EVT was unexpected at this time." How do I get cmd to interpret "-i:EVT" to be used as it would be outside a batch file?</p>
  
  <p>How do I escape?</p>
  
  <p>I have tried -i^:EVT and -i^^:EVT, both don't work. </p>