China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-11 03:36
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to convert the code after EXE to BAT into text View 3,131 Replies 15
Original Poster Posted 2007-01-28 02:50 ·  中国 天津 电信
初级用户
Credits 97
Posts 43
Joined 2005-07-25 22:07
21-year member
UID 41055
Status Offline
How to convert the code after EXE is converted to BAT into text?

There are programs like EXE2BAT circulating on the Internet, but after the EXE is converted by it, it becomes as follows:
@echo e 100 4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00 >>tmp11
@echo e 110 B8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 >>tmp11
@echo e 120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >>tmp11

How can this be understood?
May I ask how to convert these into understandable batch processing? Of course, first determine that the EXE is converted from BAT. Thank you!

By the way, an EXE converted from a batch processing is attached. Please help experts to see its batch processing source code. It's very strange...

[ Last edited by namejm on 2007-3-13 at 06:15 PM ]
Attachments
123.rar (44.66 KiB, Credits to download 1 pts, Downloads: 116)
Floor 2 Posted 2007-01-28 05:34 ·  中国 天津 电信
初级用户
Credits 97
Posts 43
Joined 2005-07-25 22:07
21-year member
UID 41055
Status Offline
Isn't it said that when a BAT is converted to an EXE, the original BAT will be generated in TEMP during runtime? Why doesn't this one show up, and how is it achieved? Please help the experts explain, thanks!
Floor 3 Posted 2007-01-30 10:03 ·  中国 天津 河北区 联通
初级用户
Credits 38
Posts 16
Joined 2006-10-28 21:19
19-year member
UID 68682
Gender Male
Status Offline
Floor 4 Posted 2007-01-30 22:51 ·  中国 山东 济宁 兖州区 联通
钻石会员
★★★★★
Credits 10,056
Posts 3,041
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Actually, it's just type 1.exe > 2.exe
简单就是美
Floor 5 Posted 2007-01-30 23:27 ·  中国 湖南 联通数据上网公共出口
社区乞丐
★★
gaoshou
Credits -16
Posts 77
Joined 2007-01-30 09:11
19-year member
UID 78105
Gender Male
Status Offline
Just modify the postscript. Change the bat to exe.
Floor 6 Posted 2007-02-10 19:09 ·  中国 山西 移动
初级用户
Credits 27
Posts 14
Joined 2007-02-10 16:57
19-year member
UID 79176
Gender Male
Status Offline
>
Otherwise, a TMP file cannot be created (because >> is an append command, which can only append the required content in the file, etc.)
Hope it helps you a bit
Floor 7 Posted 2007-02-10 19:11 ·  中国 山西 移动
初级用户
Credits 27
Posts 14
Joined 2007-02-10 16:57
19-year member
UID 79176
Gender Male
Status Offline
By the way, the default generated BAT has the DEBUG command line (that is, re-encoding the file through DEBUG), so when the P processing is executed to the end, you will see a file with the filename specified at the end of the P processing generated in the directory. If the filename is in Chinese, the filename will become garbled after re-encoding (because DEBUG does not support Chinese versions), even if double quotes are added, it doesn't work, so frustrating...
Floor 8 Posted 2007-03-14 07:03 ·  中国 山西 太原 清徐县 电信
新手上路
Credits 2
Posts 1
Joined 2007-03-14 06:39
19-year member
UID 81684
Gender Male
Status Offline
My original batch file is lost!
Floor 9 Posted 2007-05-28 14:34 ·  中国 河北 保定 联通
新手上路
Credits 0
Posts 1
Joined 2007-05-28 11:44
19-year member
UID 89546
Gender Male
Status Offline
sssssssssssssssssssssssssss
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
HAT -2 2009-01-07 21:35
Floor 10 Posted 2007-05-28 21:52 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Don't post water content in this section, upstairs.
Floor 11 Posted 2007-06-01 14:00 ·  美国 华盛顿州 金 雷德蒙德 Microsoft
新手上路
Credits 1
Posts 1
Joined 2007-06-01 11:08
19-year member
UID 89946
Gender Male
Status Offline
I don't understand, but I'll give you a bump.
Floor 12 Posted 2007-07-09 21:10 ·  中国 陕西 西安 电信
新手上路
Credits 0
Posts 1
Joined 2007-07-09 20:10
19-year member
UID 93563
Gender Male
Status Offline
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
HAT -2 2009-01-07 21:35
Floor 13 Posted 2007-12-31 13:05 ·  中国 上海 长宁区 电信
新手上路
Credits 2
Posts 1
Joined 2007-12-31 12:39
18-year member
UID 107307
Gender Male
Status Offline
Can't download...
Floor 14 Posted 2008-01-13 16:54 ·  中国 广西 贺州 电信
新手上路
Credits 16
Posts 8
Joined 2006-11-09 14:11
19-year member
UID 70150
Gender Male
Status Offline
Oh, what a pain... Really...
Floor 15 Posted 2008-10-04 16:50 ·  中国 广东 珠海 电信
初级用户
Credits 26
Posts 15
Joined 2008-10-04 15:52
17-year member
UID 127412
Gender Male
Status Offline
I don't know how to call for action, and I don't understand either
Forum Jump: