The external commands are not built in the file command.com.
Each and every external commands need a separate file to execute them.
Attribute of a file
A bit in a file specification is used to indicate whether the file can be displayed.
attrib <options> <filename>
+R => read only file attribute
-R => clear read only file attribute
+H => hidden file attribute
-H => clear hidden file attribute
This command is used to search for a pattern in a file.
find "pattern" <filename>/[options]
I => Ignore case, it will search for the given pattern inlower and uppercase
N => to display only the number of times the pattern occurs.
C => to display only the number of times the pattern occurs.
V => to display only all the lines that do not contain the pattern.
The sort command is used to sort the contents of a file or piped input in either descending or ascending manner.
c;\>sort /+2 hello
c:\>sort /r hello
We can display all the files in page by page manner.
The fc command is used to compare the contents of two files.
c:\>fc mydoc1 mydoc2
It is used to move a single or a group of files from one directory to another directory.
c:\>move myfile d:
The tree command which is provided by TREE.com file,is used to display a graphical tree view of the directory.
To display the tree view of the current directory and directories under neath the current directories.
To display all the files and directories of the directory NEW and underneath the directory specified.
it is used to display files.
It is used to copy files and subdirectories from one location to another.
xcopy c:\hai d:\hello
The deltree command is used to delete the entire directory structure from the path you give,provided by deltree command.it deletes all the files and subdirectories underneath the given directory including the directory specified.