Explanation of the IF command. It is a BATCH command. This command lets you work with conditional statements in your batch file. Example: If you want your batch file to display an error message if it can't find the Test.Bat file you use this in your batch file: if not exist test.bat then echo Can't find data file