Batch files can be created and run on any computer running Microsoft Windows. You can follow these steps to create and run a Batch file.
- Create the batch file in a text editor such as Notepad++
- Save the file with a .bat file extension, e.g. helloworld.bat
- Go to the Command prompt in Windows. You do this by going to the Run box and typing CMD
- In the Command prompt (DOS window) go the the drive and folder where you saved the file and then type the filenmame. The extension is not needed. This will run the file.
Screenshot of helloworld.bat being run: