if exist C:myprogramfile1.extension ::Do something if not exist C:myprogramfile2.extension ::Do something else