How to change the variable to find in a FOR/DO statement | Batch <p>How would I change the variable that I look for in a For/Do Statement. </p> <pre><code>@ECHO off set Riddle=The Bird In The The Bush SET /a count=0 FOR (The) IN (%Riddle%) DO SET /a count=%count%+1 ECHO %count% </code></pre> <p>In this case "The" is the variable that I desire to look for,<br> But I don't think that's the correct formatting </p> <p>Output:</p> <pre><code>3 </code></pre>