How to Make a Notepad File to BAT Format
Windows Notepad is a built-in Windows accessory for creating and editing text documents. Since batch files use the same encoding as ordinary text files, you can use Windows Notepad to create drafts of batch files as well. When you convert a standard Notepad file to a batch file, double-clicking the batch file will let Windows treat every line within the file as a command. This allows you to make a script that executes multiple commands or programs at once. Save a Notepad file as a BAT format so Windows properly recognizes it as an executable batch file.
Instructions
-
-
1
Locate the Notepad document that you wish to make into a batch file and double-click it.
-
2
Click "File" from the menu bar and select "Save As..." to bring up the dialog box.
-
-
3
Replace the file name with your desired file name, followed by ".bat" without quotes to properly add the batch file extension.
-
4
Browse to the location you wish to save the batch file.
-
5
Choose "ANSI" in the "Encoding:" box and click the "Save" button.
-
1
Tips & Warnings
If Notepad does not open when you double-click a text document, right-click the file, go to "Open With," and Select "Notepad" to edit the file.
You can edit any saved batch files with Notepad by right-clicking the batch file and selecting "Edit." From there, you can make any changes you like and then use the "Save" command from the "File" menu to update the file.