I\'m looking for a simple way to test if an executable exists in the PATH environment variable from a Windows batch file.
Usage of external tools not provided by th
@echo off set found= set prog=cmd.exe for %%i in (%path%) do if exist %%i\%prog% set found=%%i echo "%found%" if "%found%"=="" ....