How To Write A Batch Script In Windows 10 . A batch file is simply a text file saved with the.bat file extension. Type c:\users\folder location\filename.bat and hit enter. How To Create A Batch File In Windows 10 from niceetutors.blogspot.com Create and save a batch file. The command line interpreter takes the file as an input and executes in the same order. How do you run a batch file step by step?