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-13 07:02
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question for the experts: a simple question View 701 Replies 10
Original Poster Posted 2004-01-29 00:00 ·  中国 广东 清远 电信
初级用户
chxhi
Credits 163
Posts 25
Joined 2004-01-29 00:00
22-year member
UID 16254
Gender Female
Status Offline
What is the difference between DOS external commands and internal commands? What are the characteristics of each?
Floor 2 Posted 2004-01-29 00:00 ·  中国 浙江 杭州 华数宽带
初级用户
★★
Credits 516
Posts 156
Joined 2003-07-28 00:00
23-year member
UID 7657
Gender Male
Status Offline
External commands are individual files, while internal commands are in memory. External commands can be expanded, while relatively speaking internal commands are more stable. There are many internal commands, mainly cd\md\del\dir and so on; external ones include format\fdisk and so on.
Floor 3 Posted 2004-01-29 00:00 ·  中国 广东 清远 电信
初级用户
chxhi
Credits 163
Posts 25
Joined 2004-01-29 00:00
22-year member
UID 16254
Gender Female
Status Offline
How can I tell which ones are internal commands and which ones are external commands?
Thanks
Floor 4 Posted 2004-01-29 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
The following is quoted from 小不点 at 2004-1-29 15:43:02:
How can I tell which ones are internal commands and which ones are external commands?
Thanks


There is a very simple method:
Enter DOS mode, create a new folder, enter this folder, set the DOS environment variable PATH to empty (SET PATH= ). After that, any command that can be executed is an internal command; on the contrary, if it shows Bad command or filename, then it is an external command.

Also, if you are using Novell DOS or DRDOS, then typing /? at the command line will give you a list of all DOS internal commands. Please give it a try.

If there is anything inappropriate, please correct me.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 5 Posted 2004-01-29 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
The following is quoted from 小不点 at 2004-1-29 11:38:42:
What is the difference between DOS external commands and internal commands? What are the characteristics of each?


DOS internal commands are the general term for a series of commands loaded into memory when the system starts up. You can execute them at any time at the command line, and their execution is not restricted by the current drive letter, path, etc. They provide some operations essential to DOS. For example MD、CD、RD、COPY、REN、DEL、ERASE、VER、VOL、DATE、TIME、SET、ECHO、CLS、DIR、PAUSE、VERIFY、FOR、IF、REM、GOTO、PATH、and so on.
If you want help information for DOS internal commands, you only need to execute the DOS command with the parameter /? or /H.

DOS external commands are commands that exist in the form of executable files. They are loaded into memory and executed only when you need to use the functions they provide; and they must exist in the search path used by DOS to execute commands, otherwise they cannot be executed.
For example, if the search path is: SET PATH=c:\dos;c:\windows; then DOS external commands must exist in these two directories in order to be executed.

If there is anything inappropriate, please point it out.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 6 Posted 2004-01-30 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Internal commands are contained in command.com. External commands are independent EXE or COM files.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 7 Posted 2004-01-30 00:00 ·  中国 广东 清远 电信
初级用户
chxhi
Credits 163
Posts 25
Joined 2004-01-29 00:00
22-year member
UID 16254
Gender Female
Status Offline
Thanks to all the posters above, I really learned quite a lot.
Floor 8 Posted 2004-01-30 00:00 ·  中国 广东 清远 电信
初级用户
chxhi
Credits 163
Posts 25
Joined 2004-01-29 00:00
22-year member
UID 16254
Gender Female
Status Offline
What is the DOS environment variable PATH? Also, how can I find out the DOS version?
Floor 9 Posted 2004-01-30 00:00 ·  中国 广东 佛山 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
DOS environment variables are a set of public variables. DOS and DOS programs can adjust their operations according to them. Environment variables do not exist only in DOS; non-DOS-based WINNT/2000/XP/2003 and so on also have environment variables.
PATH is one of the environment variables. It specifies the search path for executable files. When you enter a DOS command, if it is not an internal command, DOS will first look in the current directory for EXE, COM, or BAT files with the corresponding filename. If it cannot find one, it will then search the directories specified by the PATH variable one by one and execute it.
The DOS version can be checked under DOS with the VER command. The DOS version numbers in WIN95/98/ME are hidden; their real versions are 7.0/7.1 (including WIN95OS2)/8.0.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 10 Posted 2004-01-30 00:00 ·  中国 广东 清远 电信
初级用户
chxhi
Credits 163
Posts 25
Joined 2004-01-29 00:00
22-year member
UID 16254
Gender Female
Status Offline
How do I set the DOS environment variable PATH to empty (SET PATH= )?
Thanks
Floor 11 Posted 2004-01-30 00:00 ·  中国 广东 清远 电信
初级用户
chxhi
Credits 163
Posts 25
Joined 2004-01-29 00:00
22-year member
UID 16254
Gender Female
Status Offline
Why can't I get help information for DOS internal commands when I enter /? or /H?
Forum Jump: