title: DOS: Command-Line Argument Validation
body: <p>Bear with me, it's been a while. :)</p>
  
  <p>What is a good way to validate command-line arguments passed to an MS-DOS batch script?</p>
  
  <p>For example, here is what I want to do:  </p>
  
  <pre><code>IF "%1"=="" throw "Missing 1st argument: Machine Name"
  IF "%2"=="" throw "Missing 2nd argument: File Path"
  </code></pre>