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-12 11:03
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Ask: Content of Bat file converted by Bat2exec(bat2com) View 5,833 Replies 24
Original Poster Posted 2004-03-19 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
How to view or revert the source file converted by Bat2exec(bat2com)?
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 2 Posted 2004-03-19 00:00 ·  美国
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The best way is to save the source file during conversion for future needs. As for methods like viewing with a hex editor, it's obviously much more cumbersome and less efficient.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2004-03-19 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
It's an exe called by Autoexec on a boot disk I downloaded. It's a bat converted by bat2exec. I want to see the source file to learn. Using Ultraedit to look at it, most of it is still garbled. It's compressed with Pklite, not encrypted. I don't know what method can be used to see its code clearly. Thanks.....!




一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 4 Posted 2004-03-20 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
After unpacking the executable file, you can use a hexadecimal editing software to see what commands are used. For some programs, you can see all the files, but for some programs, you can't. Regarding the problem you mentioned, I'll try again.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 5 Posted 2004-03-20 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
Can the landlord upload that file so that I can try to study it?
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 6 Posted 2004-03-21 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
I only succeeded in uploading once when I came to the forum; I'm too stupid; I couldn't find it, but went to Google and got it back again; look at the email kinglionsoft@idvweb.com, just remembered, it was compressed by Pklite1.15, and I couldn't unzip it with unpklite.

一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 7 Posted 2004-03-21 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
To the LZ:
The email has been received, and I will take time to study it. Please wait for good news! By the way, to ensure that I can receive the email, please also send the email to the two email addresses I公布. Thank you for your cooperation!

(注:原句中“公布”未翻译,因为不确定具体语境中“公布”对应的英文准确表达,若有更多上下文可能能更准确翻译,但按要求先保留原样并翻译其他部分)
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 8 Posted 2004-03-21 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
OK, but unfortunately I can't come to the forum in a short time until the 23rd. I don't know if I can see your answer before the 23rd. Thanks...!

一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 9 Posted 2004-03-22 00:00 ·  中国 湖北 中移铁通
初级用户
Credits 126
Posts 5
Joined 2004-03-03 00:00
22-year member
UID 19060
Gender Male
Status Offline
I also want to know the source file bat of the com converted by bat2exec to learn. Is there any software for reverse processing to restore com to bat?
Floor 10 Posted 2004-03-22 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
Decompiled the COM file the LZ sent. Please test under the actual running environment to see if there are any functional changes. The source program is as follows:

@echo off
go top

Cracked: Kinglion

:TOP
CLS
TW

:Start
CLS
echo ================================================================================
echo ghost Computer Backup System Function Selection Menu
echo.
echo 1 Backup: Backup the system data of partition c to the backup folder of drive d, with the file name c-backup.gho
echo 2 Restore: Restore the system data of partition c using c-backup.gho in the backup folder of drive d (used when the system has problems)
echo 3 Instructions: Instructions and precautions
echo 4 Introduction: Simple introduction to Esperanto
echo 5 Exit: Exit this selection menu
echo.
echo China Esperanto Website Green Network (http://VerdaReto.com)
echo ================================================================================
CHOICE /c:12345 Please enter the number (1, 2, 3, 4, 5) to select
IF ERRORLEVEL 5 GOTO Exit
IF ERRORLEVEL 4 GOTO Introduction
IF ERRORLEVEL 3 GOTO Instructions
IF ERRORLEVEL 2 GOTO Restore
IF ERRORLEVEL 1 GOTO Backup

:Backup
if not exist d:\backup MD d:\backup
CLS
echo.
echo Now starting to back up the data of drive C, please be patient.
echo After the backup work is completed, take out the disk in the floppy drive and restart the computer...
GHOST.exe D -clone,mode=pdump,src=1:1,dst=d:\backup\c-backup.gho -z9 -sure -fx
PAUSE
GOTO END

:Restore
IF EXIST d:\backup\c-backup.gho GHOST.exe B -clone,mode=pload,src=d:\backup\c-

backup.gho:1,dst=1:1 -sure -fx
IF NOT EXIST d:\backup\c-backup.gho ECHO You haven't backed up drive C yet, or you have changed the file location after backup.
PAUSE
GOTO END

:Instructions
CLS
ECHO Instructions
ECHO.
ECHO 1. After installing the basic system and necessary hardware drivers, back up partition C with this system.
ECHO 2. Before backing up partition C, it is best to defragment the disk first and ensure that the remaining space of drive D is larger than the space occupied by the data of drive C.
ECHO 3. Boot your computer with this disk, perform the backup in pure Dos state, and do not perform the backup in the Dos window in Windows system. You can also copy all the files of this disk to a certain directory of drive D, then shut down the system, restart the computer and switch to MS-DOS mode, and execute the vr command in the directory in Dos state.
ECHO
PAUSE Press any key to return to the selection menu
GOTO Start

:Introduction
CLS
ECHO Esperanto Introduction Kio Estas Esperanto
ECHO Esperanto is an international auxiliary language scheme announced by Dr. L. L. Zamenhof of Poland in 1887.
ECHO With the development of society, the exchange and cooperation of politics, economy, culture and science and technology among countries are increasing day by day, which urgently needs an international common language to solve the communication obstacles caused by the complexity of the world national languages. But any existing national language cannot take on this task at present. This is because on the one hand, any national language selected will cause emotional harm and de facto inequality to other nationalities; on the other hand, any national language is formed under long-term complex historical conditions, and inevitably contains many irregular and unreasonable components, bringing great difficulties to learners of other nationalities. Therefore, this international common language must be neutral, not belonging to any nationality, and simple and easy to learn, and rich in expressiveness. And Esperanto is such a language.
ECHO The writing form of Esperanto adopts the Latin alphabet, and the pronunciation of the same letter in any word is the same. As long as you learn 28 letters and master the spelling rules, you can read and write any word. The vocabulary of Esperanto comes from the internationalized components in natural languages (mainly the languages belonging to the Indo-European language family). It also constitutes new words by adding prefixes, suffixes and combinations between roots. This not only enhances its word-forming ability, but also greatly reduces the basic vocabulary amount and lightens people's burden of remembering words. The grammar rules of Esperanto are formulated on the basis of the Indo-European language family, simple and clear and still rigorous. Its basic grammar rules only have 16 items. Due to the above characteristics of Esperanto, it is easier to learn than any foreign language. In the words of Esperanto, the phonetic value of each letter is always unchanged, and there is no liaison phenomenon in the sentence, thus the spoken language and listening are easy to master. Familiar with the grammar rules, master about 2000 roots and suffixes, you can communicate and talk freely, and carry on the communication without difficulty.
ECHO Those interested in Esperanto can contact the All-China Esperanto Association:
ECHO 100037 Beijing, No. 24, Baiwanzhuang Road, All-China Esperanto Association Telephone: (010) 68326682
ECHO Or visit the China Esperanto Website Green Network on the Internet: http://VerdaReto.com
ECHO.
PAUSE Press any key to return to the selection menu
ECHO.

:Exit

:END
ECHO.
ECHO Take out the disk in the floppy drive and restart the computer.
ECHO.
ECHO If you want to re-enter the just selection menu, first enter vr, then press the Enter key.
ECHO.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 11 Posted 2004-03-22 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
Please ask the owner to check. I haven't actually run this program.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 12 Posted 2004-03-23 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
Brother Jin Shi, can you talk about the method!!! The software used, teach me to fish. When this file comes out of the DOS menu, I roughly know it's written like this. Bat is that com file, but I don't have the correct method to restore it to the file you have above. Thank you for your concern. I don't need to run it. I just want to be able to deal with it and look at the original text for learning when I encounter some functions implemented by such com, exe; after running (complex batch processing) and don't understand, heh heh. The countdown to leaving is on, I'm in a hurry, heh heh. I'm sorry, thank you again...!!!!!!!!!!!!!!!!!!!!!!


一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 13 Posted 2004-03-23 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
In fact, I don't have any program to automatically restore the above batch processing program. It's just that I studied the method of compiling BAT files into COM files before. Besides, I have the source code of the BAT2EXEC program. The reason why I can restore the source code is that I reversed the operation according to the compilation principle of the BAT2EXEC program. Moreover, these are all done manually, and the specific methods will be different due to different programs. You can study the source code of the BAT2EXEC program, and I think it will be helpful to you. I will upload the source code some other day.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 14 Posted 2004-03-23 00:00 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
By the way, if the thread starter has any good batch processing programs in the future, don't forget to send me one! Hehe!
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 15 Posted 2004-03-23 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
Certain. Thank you for your help. Goodbye...! ^_^
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Forum Jump: