How?
Loops? writting a temporary batch file in the background to use "If not exist" and "if exist"?
Can if statements in C or C++ do the same thing as the following batch file....
if not exist c:\windows\write.exe goto no
if exist c:\windows\write.exe goto yup
:no
echo.
echo. Wordpad does not exist !
echo.
pause
goto done
:yup
echo.
echo you have wordpad
echo.
pause
goto done
:done
cls
exit