Avatar of LuckyLucks
LuckyLucks
 asked on

Saving a batch file as text and opening to read its contents

Hi:

 I  renamed a batch file as text (I can view the file extensions so for sure its called blah.exe.txt). Then I R-Click and Edit. But the contents are all garbled and not in human readable format. How can I get to read the contents of my batch file?

Thanks
Microsoft DOSWindows BatchProgramming

Avatar of undefined
Last Comment
Gerwin Jansen

8/22/2022 - Mon
oBdA

Well, if it's called "blah.exe.txt", then the file underneath is not batch file, but an exe file, and exe files come in binary form.
If it's a "compiled" batch file, you'll need to check if the compiler offers an option to decompile.
LuckyLucks

ASKER
Thank you.

Ok so I did rename it to blah.txt , and did the same R-Click and Edit, but that didnt do the trick.

How can I check if its a compiled batch file as opposed to'non-compiled'? And where can I get hold of the compiler and check its option? The author is not around anymore.
Bill Prew

Can you post the blah.exe.txt file here, so we can analyze it?

~bp
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Gerwin Jansen

Start wordpad, try opening the file with that. Is it readable now?

If not, can you post a screenshot of the opened file in wordpad or notepad?