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

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

Answer
Answer

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

349 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Answer
Answer

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.

Microsoft Most Valuable Professional since 2007 www.thecomputernext.com
www.troubleshootwindows.com

277 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated May 12, 2024 Views 296,201 Applies to: