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

@Abhijit Dey · Jun 4, 2013

While regular browsing and surfing on the internet, I came upon something fascinating. With an interest in window shopping and preparing a wish list for things I would like to...

@Kaustubh Katdare · Jan 18, 2011

BSNL 3G set the Indian Internet World ablaze by being the first one to offer 3G connection speeds over wireless data modems. The BSNL EVDO service was a big flop...

@maria flor · Jul 4, 2011

To those fellow Filipinos who want to take the REE, RME or PEE Board Exam, here are the qualifications: Qualifications of Applicant for Registration as Professional Electrical Engineer. - Any...

@sai kumar · May 23, 2018

Is jobacute real or fake? Can someone give first hand, detailed opinion or review of jobacute? 

@Ankita Katdare · Aug 18, 2013

Maruti Suzuki India Ltd, the country's largest passenger car manufacturer, never fails to amaze us. The last time we wrote about them it was about Maruti Ertiga CNG that help...