title: Batch: Only run if parent folder contains "word"
body: <p>I'm looking for a way to only allow my batch file to proceed IF it is placed inside of a directory containing a certain word. My pseudocode is as follows:</p>
  
  <pre><code>IF parentDirectory contains some "word" GOTO start
  ELSE echo "error message here" GOTO end
  </code></pre>
  
  <p>What are my options for achieving this?</p>