For this reason, you need to convert the. At times, you wish to execute the commands themselves without going into the command prompt. The batch file contains a series of command that can be executed under the Command Prompt.bat file needs to be executed through the command prompt. Windows Batch File is one of the common formats usually found in Windows File Structure.