Internal and External commands in Windows command prompt
There are 2 types of commands in Windows command prompt.
These commands are called as internal because binary file for such commands does not exist. These commands are always loaded into memory when system is booted.
Here is the list of some of the Internal Commands.
- CD, COPY, DEL, DIR, MD, PATH, REN, RD
- CLS, ECHO, EXIT, TYPE
- DATE, TIME
- BREAK, CALL, CHCP, FOR, GOTO, IF, PAUSE, PROMPT, REM
- SET, SHIFT, VER, VERIFY, VOL
These commands are called as external commands because there is binary file for such commands on hard disk. These commands are actually exe files that reside on hard disk. (Usually in %WinDir%\System32). External commands usually have extensions like .exe, .bat, .com
Here is the list of some of the popular External Commands
- ATTRIB.EXE, BACKUP.EXE, CHKDSK.EXE
- COMMAND.COM, COMP.EXE, DOSKEY.COM, EXE2BIN.EXE, FDISK.EXE
- HELP.EXE, JOIN.EXE, MORE.COM, PRINT.EXE
- RECOVER.EXE, REPLACE.EXE, RESTORE.EXE
- SORT.EXE, SUBST.EXE, SYS.COM, TREE.COM, XCOPY.EXE