The BAT file is a text file that can be used to run other programs or commands in a sequence. The EXE file is a binary file that contains code or commands that can be executed by the System on a lower level if needed. It can be used for almost anything. Right from installing a program to deploying a virus. It is the primary reason why all EXE files are blocked and scanned by browsers and operating systems.