<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'look for given .exe in PATH'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 08 Apr 2026 21:50:18 +0000</lastBuildDate>
    <item>
      <title>Vordreller said on 17/Apr/2009</title>
      <link>https://snipplr.com/view/14134/look-for-given-exe-in-path</link>
      <description>&lt;p&gt;Sorry dude, syntax is wrong, copied it, made it one line, replaced foobar.exe with notepad.exe, entered it, got an error message:&#13;
&#13;
&#13;
%%f was unexpected at this time.&lt;/p&gt;</description>
      <pubDate>Fri, 17 Apr 2009 22:58:48 UTC</pubDate>
      <guid>https://snipplr.com/view/14134/look-for-given-exe-in-path</guid>
    </item>
    <item>
      <title>maphew said on 21/Apr/2009</title>
      <link>https://snipplr.com/view/14134/look-for-given-exe-in-path</link>
      <description>&lt;p&gt;use double percent (%%f) when in batch file, single (%f) when a command line. So for command line use it would be:&#13;
&#13;
   `for %f in (notepad.exe) do if exist "%~dp$PATH:f" echo %f located at "%~dp$PATH:f"`&lt;/p&gt;</description>
      <pubDate>Tue, 21 Apr 2009 13:02:27 UTC</pubDate>
      <guid>https://snipplr.com/view/14134/look-for-given-exe-in-path</guid>
    </item>
  </channel>
</rss>
