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-06-25 05:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Converting bat to com with bat2com has a very low success rate!? View 2,102 Replies 1
Original Poster Posted 2006-06-18 19:31 ·  中国 新疆 克拉玛依 电信
初级用户
Credits 162
Posts 44
Joined 2006-03-24 22:35
20-year member
UID 52742
Status Offline
I tried bat2com, and it doesn't seem very good.

The bat file that could run normally at first can't run at all after being converted to com.

What's the matter? Is there a solution?

http://upload.cn-dos.net/img/946.zip

───────────────── Moderation Record ─────────────────
Performed by: HAT
Operation: Helped the owner upload the attachment
───────────────── Moderation Record ─────────────────


[ Last edited by HAT on 2008-10-15 at 20:12 ]
Floor 2 Posted 2006-06-18 19:48 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re:

Almost all conversion software under DOS such as bat2com/bat2exe have various compatibility issues. Most of them do not support certain features or special syntax of batch processing, such as command line parameters, IO redirection, command pipelines, ERRORLEVEL, etc. There have been many discussions about this before.

The currently popular shell packing under Windows has solved many problems, but its compatibility cannot be guaranteed. In many cases, it is the author who writes the batch shell in a high-level language to achieve conversion to avoid certain special compatibility issues.

[ Last edited by willsort on 2006-6-18 at 19:55 ]
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Forum Jump: