Batch files in Windows are the script files. A batch file is an unformatted text file. This file consists of a series of commands and has …