title: Batch file to match partial directory
body: <p>I am trying to write a script to automate a program to run after a file is finished downloading in a particular directory. The issue I have is when the files download they are in their own folder. What I need is for somehow to match just the TV Shows folder and not the actual folder the video is in. </p>
  
  <p>Below is my batch file:</p>
  
  <pre><code>(IF /I %2=="G:\TV Shows" ("C:\Program Files (x86)\theRenamer\theRenamer.exe" -fetch))
  </code></pre>
  
  <p>Here is an example.</p>
  
  <pre><code>(IF /I "G:\TV Shows\Bates.Motel.S01E10.720p.WEB-DL.DD5.1.H.264-KiNGS [PublicHD]"=="G:TV Shows" ("C:\Program Files (x86)\theRenamer\theRenamer.exe" -fetch))
  </code></pre>
  
  <p>Obviously it does not run properly, I tried adding in a * for wildcard character and matching sub strings but I could not get either to work. Any help would be greatly appreciated.</p>