Batch files also balled as BAT files because of their extension. A batch file is a simple text file that has the *.bat file extension and contains MS-DOS commands or binary files. What Is Batch File?īefore starting to create and running batch files we should learn what is a batch file. If specific command, binary or feature is not supported it will be skipped and not executed but others lines of batch file will be executed. But the batch files contents like commands, binaries and features should be compatible with the current operating system in order to execute in reliable way. In this tutorial, we will learn how to create a batch file for MS-DOS and PowerShell, How To Run, or Execute Batch File?īatch files are supported by all modern Windows operating system versions like Windows XP, Windows 7, Windows 8, Windows 10 and Windows Server versions. Most of the operating systems like windows provide the ability to create and run batch files. A batch file is a file that contains MS-DOS commands and when the batch files are clicked or called these commands are executed.