Creating a batch (.bat) file in windows
On windows a Batch file simply a text document with the file extension .bat rather than .txt.
Step 1. Create a new file To create a batch file, simply right click and hover over New then press Text Document.
Step 2. Set the file name to end with .bat With the new file created, enter the name run.bat. You should get a warning confirming you want to change the name extension, press yes.
Read more