中国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 17:29
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Re: What's the difference between .exe, .com, and .bat??
Printable Version  1,179 / 0
Floor1 ko20010214 Posted 2003-06-01 00:00
版主 Posts 1,628 Credits 7,296
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)
==================================================
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023