title: Remove/Install windows services using batch
body: <p>I've got a service called <code>serv1</code> which I don't know it's state (already installed or not), this service gets installed via another batch file (<code>service.bat install</code>)</p>
  <p>My goal is to write a <code>.bat</code> file which checks if <code>serv1</code> exists, so I want to <strong>remove</strong> it and <strong>re-create</strong> it calling '<code>service.bat install</code>' ; if not, create it calling '<code>service.bat install</code>'</p>
  <p>I've searched for some commands; I found that we use &quot; <code>sc delete ServiceName</code> but, I'm not familiar with batch a lot.</p>