if exist yourfilename ( echo Yes ) else ( echo No )
if exist C:myprogramfile1.extension ::Do something if not exist C:myprogramfile2.extension ::Do something else