Sender: NCUBAT.bbs@bbs.mgt.ncu.edu.tw (勋), Board: DOS
Title: Re: What's the difference between .exe, .com, and .bat??
Posted at: Central MIS Totoro Information World (Sat Dec 9 23:58:42 1995)
Forwarded via: SMTH!aidebbs!news.csie.nctu!news.cc.nctu!news.Edu.TW!news.ncu!news.yzit
==> Sender: hwz.bbs.bbs@bbs.im.tku (にの风), Board: DOS
: What's the difference between these three executable files???
: Is it related to memory???
*.bat executes its commands through Command.com (when booting with Msdos, it must include Io.sys, Msdos.sys, and a command interpreter
Command.com -Ndos also has Ndos.com ...- ) to execute its commands (made up of commands + parameters)
So the contents of *.bat are made up of readable text, and can also be written with a normal text editor.
As for *.com and *.exe, they are made up of machine code (source programs written in languages such as C or Pascal or Clipper.... are
compiled from source code by a Compiler; *.com can be converted from *.exe, with the help of certain Utilities; of course
the program itself has to meet certain restrictions)
When *.com executes, it can only use one memory block (size 64Kbyte) to store program code and data code
*.exe is not subject to this limitation; it can put program code and data code into different blocks, and in the program header there is information about
the data code and program code, provided to the machine (or rather, to the operating system), and it may also contain information about
overlays (Overlay).
Generally, *.com executes faster than *.exe
--
□ I come from Central MIS, a place with Songtao and beautiful sunsets. □
□ E_Mail: NCUBAT.bbs@bbs.mgt.ncu.edu.tw(勋) □
□ u4301025@sparc20.ncu.edu.tw □
□ What I longed for has long since passed away, and the longing itself has solidified into form.. □
(This article was copied using the S-Term article copy script)
==================================================
Title: Re: What's the difference between .exe, .com, and .bat??
Posted at: Central MIS Totoro Information World (Sat Dec 9 23:58:42 1995)
Forwarded via: SMTH!aidebbs!news.csie.nctu!news.cc.nctu!news.Edu.TW!news.ncu!news.yzit
==> Sender: hwz.bbs.bbs@bbs.im.tku (にの风), Board: DOS
: What's the difference between these three executable files???
: Is it related to memory???
*.bat executes its commands through Command.com (when booting with Msdos, it must include Io.sys, Msdos.sys, and a command interpreter
Command.com -Ndos also has Ndos.com ...- ) to execute its commands (made up of commands + parameters)
So the contents of *.bat are made up of readable text, and can also be written with a normal text editor.
As for *.com and *.exe, they are made up of machine code (source programs written in languages such as C or Pascal or Clipper.... are
compiled from source code by a Compiler; *.com can be converted from *.exe, with the help of certain Utilities; of course
the program itself has to meet certain restrictions)
When *.com executes, it can only use one memory block (size 64Kbyte) to store program code and data code
*.exe is not subject to this limitation; it can put program code and data code into different blocks, and in the program header there is information about
the data code and program code, provided to the machine (or rather, to the operating system), and it may also contain information about
overlays (Overlay).
Generally, *.com executes faster than *.exe
--
□ I come from Central MIS, a place with Songtao and beautiful sunsets. □
□ E_Mail: NCUBAT.bbs@bbs.mgt.ncu.edu.tw(勋) □
□ u4301025@sparc20.ncu.edu.tw □
□ What I longed for has long since passed away, and the longing itself has solidified into form.. □
(This article was copied using the S-Term article copy script)
==================================================
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
