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 09:32
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Everyone: How can *.com files be automatically run in the boot disk??? View 2,494 Replies 2
Original Poster Posted 2003-04-04 00:00 ·  中国 海南 海口 联通
初级用户
Credits 127
Posts 6
Joined 2003-03-31 00:00
23-year member
UID 1331
Gender Male
Status Offline
Dear experts:

Recently, I made some bootable CDs. Some of the tools need to be made into boot images (*.img), such as converting *.exe format to *.img format; but I encountered some *.com format executable files, and it always fails to start successfully;

The idea is: 4 boot files under the boot disk + tool *.com + automatic batch processing program

The problem is: How does this automatic batch processing program load the *com file? (I tried to load it directly and it didn't work!)

Thanks!
Floor 2 Posted 2003-04-04 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
I don't quite understand what you're trying to say.

Are you going to add some tool files to the IMG file? It's not converting EXE to IMG, right?? I've never heard of such a thing.

If you want to add tool files to the IMG file, you can use the winimage software, which can conveniently create disk image files (IMG files). Both EXE and COM tools are okay.

As for loading the COM file in the autoexec.bat (auto-execution batch file), just write the file name of the COM file into the content of autoexec.bat. You said it can't be loaded? Is it because the COM file still has some auxiliary files to call and you haven't put them in the IMG file together? Or does the COM file need to run in a specific environment?

It's hard to help you if you don't specify what the error message is.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 3 Posted 2003-04-06 00:00 ·  中国 海南 海口 联通
初级用户
Credits 127
Posts 6
Joined 2003-03-31 00:00
23-year member
UID 1331
Gender Male
Status Offline
This *com file, referred to as DN, is unknown in the new era of DOS; it is a resource management software under DOS.

Since I don't know if this software is complete after decompression, there is only one executable file: DN.COM. Then I loaded this file according to the example, but it couldn't run. I suspected that the auto - batch was written wrong, but other *.exe executable files can run with the same batch. Then it shows that the problem is between the suffix name *.com and *.exe???
Is that so???
Forum Jump: