A batch file refers to those text files that usually end with a ".bat" extension that contains multiple commands that the system can run in sequence from the Command Prompt to perform different tasks.
I've got a backup utility that creates one folder every day; I only want to keep the last five folders made, so after the backup is run, I would like to run a script that purges the older folders.