This wikiHow teaches you how to write and save a basic batch file on a Windows computer. A batch file contains a series of DOS (Windows language) commands, and is commonly written to automate frequently performed tasks such as moving files.
Save your code as a bat file. Now that you've finished writing your code, you can click the "File" menu, likely on the top menu bar of your text editor, and select "Save as".