![]() |
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-13 06:03 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Question for the experts: a simple question |
| Printable Version 700 / 10 |
| Floor1 小不点 | Posted 2004-01-29 00:00 |
| 初级用户 Posts 25 Credits 163 | |
|
What is the difference between DOS external commands and internal commands? What are the characteristics of each?
|
|
| Floor2 hhhhhh | Posted 2004-01-29 00:00 |
| 初级用户 Posts 156 Credits 516 | |
|
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.
|
|
| Floor3 小不点 | Posted 2004-01-29 00:00 |
| 初级用户 Posts 25 Credits 163 | |
|
How can I tell which ones are internal commands and which ones are external commands?
Thanks |
|
| Floor4 Kinglion | Posted 2004-01-29 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
The following is quoted from 小不点 at 2004-1-29 15:43:02: 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. |
|
| Floor5 Kinglion | Posted 2004-01-29 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
The following is quoted from 小不点 at 2004-1-29 11:38:42: 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. |
|
| Floor6 MYS | Posted 2004-01-30 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
Internal commands are contained in command.com. External commands are independent EXE or COM files.
|
|
| Floor7 小不点 | Posted 2004-01-30 00:00 |
| 初级用户 Posts 25 Credits 163 | |
|
Thanks to all the posters above, I really learned quite a lot.
|
|
| Floor8 小不点 | Posted 2004-01-30 00:00 |
| 初级用户 Posts 25 Credits 163 | |
|
What is the DOS environment variable PATH? Also, how can I find out the DOS version?
|
|
| Floor9 MYS | Posted 2004-01-30 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
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. |
|
| Floor10 小不点 | Posted 2004-01-30 00:00 |
| 初级用户 Posts 25 Credits 163 | |
|
How do I set the DOS environment variable PATH to empty (SET PATH= )?
Thanks |
|
| Floor11 小不点 | Posted 2004-01-30 00:00 |
| 初级用户 Posts 25 Credits 163 | |
|
Why can't I get help information for DOS internal commands when I enter /? or /H?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |