中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 21:22
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » [Discussion] About Converting BAT Files to COM or EXE Files
Printable Version  1,722 / 6
Floor1 prodigall Posted 2008-10-14 10:35
初级用户 Posts 36 Credits 80
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)?
Floor2 chenhaihua Posted 2008-10-14 21:32
初级用户 Posts 11 Credits 21 From 福建泉州
Bro, please make it clearer. I can't see it very clearly.
Floor3 HAT Posted 2008-10-14 21:35
版主 Posts 5,017 Credits 9,023
Floor4 ahongguo Posted 2008-10-15 07:29
新手上路 Posts 7 Credits 10 From 河北沧州
Floor5 prodigall Posted 2008-10-15 10:28
初级用户 Posts 36 Credits 80
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?
Floor6 ZJHJ Posted 2008-10-15 13:42
高级用户 Posts 374 Credits 609
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.
Floor7 HAT Posted 2008-10-15 21:23
版主 Posts 5,017 Credits 9,023
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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023