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


 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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
LuckyLucksAuthor Commented:
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 PrewCommented:
Can you post the blah.exe.txt file here, so we can analyze it?

If the original file extension is .exe, then it just isn't a batch file.
What makes you think that it's a batch?

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gerwin Jansen, EE MVETopic Advisor Commented:
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?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.