How to Change the Extension of the Txt File From Txt to Bat

How to Change the Extension of the Txt File From Txt to Bat thumbnail
Batch files are simple programs created by converting text files.

Most programmers create batch (.bat) files by writing them as text (.txt) files, then changing the file extension. When the batch program is written, changing the file extension to .bat is very easy. Though all text files can be changed to batch files, that does not mean that all text files can be converted to functional batch files; writing batch files that actually accomplish something requires a bit of programming knowledge.

Instructions

    • 1

      Open the text file for which you wish to change the file extension to ".bat."

    • 2

      Open the "File" menu in the upper left corner of the Notepad program. The Notepad program is the default text file viewer in Windows.

    • 3

      Choose "Save As" from the file menu options. A dialogue box will open that contains a place for you to type the name of the file you are saving.

    • 4

      Type the name of your text file followed by ".bat." For instance, if the file you opened is called "program.txt," save it as "program.bat" (without the quotes).

    • 5

      Click "Save" and your computer will convert the text file to a batch file.

Related Searches:

References

  • Photo Credit binary image by chrisharvey from Fotolia.com

Comments

You May Also Like

Related Ads

Featured