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 19:29
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Discussion] About Converting BAT Files to COM or EXE Files View 1,721 Replies 6
Original Poster Posted 2008-10-14 10:35 ·  中国 广东 深圳 联通
初级用户
Credits 80
Posts 36
Joined 2007-06-14 09:41
19-year member
UID 91264
Gender Male
Status Offline
For some reason, I need to convert a BAT file into a COM or EXE file. A friend recommended using the BAT2COM program. I tried it and it worked to some extent. It could correctly convert, and when using the EDIT command in DOS, I could see the content inside the converted COM file, but it couldn't be edited again.

However, this program has some bugs, that is, it can't restrict the editing of COM files by third-party programs in DOS. There is a Norton software NC.EXE in DOS that can edit the COM file converted by BAT2COM, just like editing a BAT file.

Dear friends, is there any other program that can convert BAT files into COM or EXE files? Or is there a way to restrict the editing of COM files by NC.EXE (but not restrict the editing of BAT files)?
Floor 2 Posted 2008-10-14 21:32 ·  中国 福建 泉州 电信
初级用户
Credits 21
Posts 11
Joined 2008-10-14 21:05
17-year member
UID 128390
Gender Male
From 福建泉州
Status Offline
Bro, please make it clearer. I can't see it very clearly.
Floor 3 Posted 2008-10-14 21:35 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Floor 4 Posted 2008-10-15 07:29 ·  中国 山东 淄博 联通
新手上路
Credits 10
Posts 7
Joined 2008-10-15 05:13
17-year member
UID 128404
Gender Male
From 河北沧州
Status Offline
Floor 5 Posted 2008-10-15 10:28 ·  中国 广东 深圳 联通
初级用户
Credits 80
Posts 36
Joined 2007-06-14 09:41
19-year member
UID 91264
Gender Male
Status Offline
3rd楼主:
Thanks, I've downloaded and tried it, it should solve the problem I mentioned.
But another problem has arisen, the EXE file generated by the batch Stalker will modify my original file name.
For example, the original is a.bat, and the generated EXE file is abat.exe.
Because I will call a.bat in b.bat, then the content in my b.bat also needs to be modified.
Is there a way to not change the original file name?
Floor 6 Posted 2008-10-15 13:42 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
20-year member
UID 59720
Status Offline
Batch processing Stalker V5.0 has nothing special, and the practicality is also problematic.
1 For a file of about 100k, after generating the exe, it reaches more than 600k and cannot be used.
2 It also needs to extract files, and it is also very easy to capture the source code.
3 Converting files is extremely slow.
Floor 7 Posted 2008-10-15 21:23 ·  中国 重庆 九龙坡区 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Can't I manually change abat.exe to a.exe? To automatically avoid this problem, you can contact the author of "Batch Processing Stalker V5.0" for modification.
Forum Jump: