Share via

How do i change a .txt file to a .bat file?

Anonymous
2012-07-18T10:10:30+00:00

It says it is a .bat file but it is in .txt format? Help!

I need it it for my hamachi Bukkit server on Minecraft.

Thank you

Windows for home | Previous Windows versions | Gaming

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2012-07-18T10:24:37+00:00

    Hi,

    A bat file is a text file, just a special sort, one that has executable instructions in it.

    You can rename files with a .bat extension to have a .txt extension and vice versa (right click and then choose Rename). To rename you may need to make extensions visible...

    • In Control Panel/Folder Options click the View tab
    • Untick the box for 'Hide extensions for known file types'
    • Click OK

    You can open either with a text editor such as notepad, though a .bat file may have to be right clicked and then choose the Edit option rather than Open (Open means execute the code in the bat file).

    You can 'Save As' in a text editor such as notepad, in either format, by specifying the extension explicitly.

    Tricky

    300+ people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Anonymous
    2012-07-18T10:23:48+00:00

    Open the notepad. Type all the commands that you wish you write.

    go to File -> save as -> under save as type select "All files"

    now type the name with extension .bat example : example.bat and click on save. That should do it.Let us know.

    300+ people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Anonymous
    2018-04-03T17:27:07+00:00

    Best to start a thread of your own, explaining your aim and what exactly you did. Adding your comment to a 6-year old report is unlikely to get you any good answers.

    3 people found this answer helpful.
    0 comments No comments

8 additional answers

Sort by: Most helpful
  1. Anonymous
    2013-08-15T22:41:08+00:00

    Hi guys, I followed all the steps above but still when I save the bat file it shows as a note pad file, in fact all my files are strange, it all shows in white pages rather than the appropriate symbol, like bat. or cl. even the exe. extensions become a white page meaning it does not know what program to use to open it.

    I have researched everything and can't get a solution, I really don't want a new installation right now.

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2016-05-11T09:56:54+00:00

    I tried to do what you said but I can't find the View tab..

    6 people found this answer helpful.
    0 comments No comments