[quote=@FernStone] (I tried to think of some witty code to put here, but I got as a far as an if statement and stopped) [/quote] Here let me help you with that: for %i in (witty.exe) do @echo %~$PATH:i #SickBurn