title: Parse string from Windows batch file
body: <p>I want to be able to check whether or not Tomcat is currently already running as a service.  The problem is that I'm not sure what the name of the service will be.
  I plan to look in another batch file from where Tomcat is started.</p>
  
  <p>In that file there is the line:</p>
  
  <pre><code>@echo off
  rem START or STOP Tomcat
  ....
  sc start "TomcatService5"
  </code></pre>
  
  <p>Is there an easy way to read that file and parse out the service name argument passed into the command "sc start"?</p>