title: Run only selected file from right-click context menu with batch script?
body: <p>Simple batch file e.g.</p>
  <pre><code>for %%i in (*.txt) do (
      start notepad.exe &quot;%%~ni.txt&quot;
  )
  </code></pre>
  <p>Run it through right-click context menu as answered <a href="https://superuser.com/a/1070913/306306">here</a></p>
  <p>It works correctly as long as there's only one .txt file in the directory. If there are multiple .txt  files, it opens all of them.</p>
  <p>How to open only the one file that was right-clicked on?</p>