title: plink automated batch script
body: <p>How would I create a simple batch script(windows) to close then current plink session if it times out and reconnect automatically? </p>
  
  <p>something like this:</p>
  
  <pre><code>if "plink.exe" == "false" (
      "plink command to connect to SSH Server."
  )
  </code></pre>
  
  <p>or maybe</p>
  
  <blockquote>
    <p>if "plink.exe" == "false" (    "batch to open new plink instance"
        )</p>
  </blockquote>