D:\temp>perl -e "print grep {-f $_.'/command.com'} split /;/,$ENV{PATH}" C:\WINDOWS\system32