There are two types of command: -
Internal commands:
Internal commands are the commands stored in the file command.com which is loaded into main memory at the time booting thus internal commands are also loaded in the main memory and remains in the main memory as long as computer is on. These commands can be executed at the any time as no extra file is required to run them.
Ex. Dir, cd, md, cls, copy, delete, rd, etc.
External commands:
External commands are stored in different files. Each external command as its own File. Thus they cannot be executed if there files is not loaded in the memory. Generally these files are stored on the secondary storage and loaded into the main memory whenever requested. Ex. Format, Attrib, tree, disk copy.
File name should be only 11 characters, in which 8 character for main name and 3 characters for extinction name. We can use A to Z characters and 0 to 9 numbers and some special symbols like that $, @, ~, {,}, &.
Ex. Akhil.doc Akhil is File Name, doc in Extinction name.
MD: - For make directory.
CD: - For change directory.
Del: - For Delete.
Copy con: - For make file.
Type: - for open file.
Cls: - For clear screen.
Cd.. : - For come out from any dir.
/b : for space.
C:\>D:
D:\>md bws
D:\>cd bws
D:\>ws>copycon file1
D:\>ws>md sita
D:\>ws>md ram
D:\>ws>cd ram
D:\>ws\ram>md net
D:\>ws\ram>md game
D:\>ws\ram>cd net
D:\>ws\ram\net>md dos
D:\>ws\ram\net>copycon file2
D:\>ws>ram>net>cd\
D:\>
Copy command
Ex. C:\> copy ram shyam
If want to copy from C :\> to D:\> then
C:\> copy ram D:shyam
Wild card:- It have two special symbol “? and *”. When we misspell our file name or forgot file name then use “?” symbol.
(arun.com)
* Symbol shows all file.
This will show all file which extinction is .com.
C:\>dir b *.*
This will show all file with any extinction.
Deltree commands:- The deltree commands is used to delete an unwanted directory. If we want to delete directory with its all subdirectory and file we used deltree command.
These four attributes are as follows:-
(1) Read only file: - If a file attributes of a file set as read only then it can be deleted or modified.
(2) Hidden file:- This attributes is also used avoid the unauthorized access the file. If this attributes is set “on” then that file is not shown in the common listing of all file.
(3) System file:- If this attributes is set “on” then is work as a combination of read only and hidden attributes. It means such a file is set as read only and is not display in file listing.
(4) Archive file:- If an archive bit is set it means that the file is modified since last time it was accessed