CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@parihar888 • 17 Jan, 2008

Hi ,

How can we extract .bat files to .txt file ?.

@parihar888 • 17 Jan, 2008 Let me know

HI ,
we can easily create batch files just saving the text in notepad with .bat xtension , but how can we get .bat file to .txt file???
@LORD_EC • 17 Jan, 2008 Re: Let me know

Right Click on the .Bat file and then use "open with" dialog to open it with Notepad.
@Prasad Ajinkya • 21 Jan, 2008 rename the .bat extension to .txt? Will that not work??
@viiper • 21 Mar, 2008 Select 'Open with' option from the right click context menu and then choose "Choose Program". Select notepad from the list and then you can save the file in .txt form
@friendster7 • 22 Mar, 2008 u can convert the .bat file into .txt
selecting the .bat file right click>>properties>>openwith change to Notepad..
@Sai s • 03 Dec, 2018 • 1 like

you can easily convert .bat to .txt by simply right clicking on the .bat file and select edit.From there copy the whole code and paste it into a new notepad and delete .bat file.

Yes!you are done........

@Vinay Mishra • 13 Jan, 2020 • 2 likes

You can do it by several methods.

1) Simply change the extension of file from .bat to .txt (if it ask for permission with a warning, allow it).

2) Copy the whole content from .bat file and paste it in a new .txt file.

3) There are some platforms available on internet where you can just drop your .bat file and it will get converted into any extension you want. For example: The world's largest computer file extension library with detailed explanation of each file type with links to associated software programs.

@Teja Reddy • 16 Jan, 2020 • 1 like

Batch files(.bat) are already text files you don't have to convert them manually if u wish to open u can directly see using text editor but if want to convert then it's very simple just rename file from .bat to .txt extension that's it.

@Karshil Sheth • 26 Jan, 2020

I use online software on google and duck duck go. There are multiple sites which can convert any type of file into specific format you like. One such website I use is:-

@Swarup Pan • 26 Jan, 2020

There are a lot of ways to do it.

1. Open the file with notepad and save as it.txt

2. Right click on the file and go to properties, advanced option and then change it.

3. Rename the file with.txt extension.

4. Right click on the file, open with, select notepad, check the always box.

5. Copy the entire element of that file and paste it over a new text file and then save it.

@Durgesh Srivastava • 17 Feb, 2020

Open a new Notepad file. You can also use any similar text file editor, like Notepad++.

Type the following commands in the text file:

Save the text file with the extension .bat instead of .txt. For instance, testbatch.bat in my case.

To Run the batch file, simply double-click it. The CMD Window will open automatically with the desired output.

@Noothan Kumar • 22 Feb, 2020
  • You need to scan for links in the txt file, search for regular expression matching
  • You need a http client to fetch the link, if you are in powershell, lookup curl, else use python and its http library
  • You need to open and close that file periodically, and to do that, write a loop in your script, or use task scheduler.

Also, Learn python, it is worth the effort and will be at worst having the same learning curve as batch script.


Related Posts

@jijo jacob · Oct 12, 2015 project topics related to structural engineering

@Chaitanya Kukde · Sep 5, 2014

Moving fast in an attempt to catch up with the tablet-specialist ARM processors, Intel has launched the first of the Core M (codenamed Broadwell-Y) range of processors. This announcement came...

@Guneet Khanuja · Apr 29, 2014

Could you please suggest how can I get pdfs of the following books (ebook)? 1. Proficiency in Reading Comprehension Simplifying the Passage for you by Ajay Singh 2. Objective English...

@BCA_GIRL · Oct 16, 2010

What are the differences between Serial schedule and Serializability? As i concerned, a schedule is said to be Serial if all the operation of transaction executes consicutively without any interference...

@atul-namdeo · Nov 2, 2013

hello, i want to know is there any way to get placed through off campus while pursuing B.E.(Mechanical) in final year? plz tell what should i do?