The internal commands for DOS are the basis for the operation.
&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; 1) dir--displays information about all files or directories on the specified path
Its format is "dir [letter:] [path] [filename] [parameter]", such as "Dir E:\FF." Playlists ". Input and return will display relevant information (Figure 1). In addition, it has several parameters:
W: Widescreen display, a row of 5 file names, and will not show the modified time, file size and other information;
/p: Pagination display, when the screen is unable to complete the display of information, you can use it for paging display;
/A: Displays files with special attributes, where the properties are "H" hidden, "R" is read-only, and so on, we can enter "DIR *.*/ah" to display all the files with hidden attributes in the current directory;
/S: Display all the files under the current directory and its subdirectories, through which we can search for a file or directory, for example, we can type "DIR *" after "c:>". DAT/S "To find all the files in the C disk with the suffix named dat.
Several parameters can be used at the same time, such as "DIR *.com/w/p/s".
2) md--set up the catalogue
Its format is "MD [disk] [path]", for example, "MD TEMP".
Note: This command can only create one directory at a time.
3) rd--Delete directory
The format is "RD [disk] [path]".
Note: This command can only delete empty directories and cannot delete the current directory.
4) cd--into the specified directory
Format is "CD [path]", such as CD HAPPY.
Note: You can only enter the directory in the current disk. where "cd\" is returned to the root directory, "CD ..." To go back to the previous level directory.
5 copy--Copy files
The format is "copy [source directory or file] [destination directory or file]", such as "Copy c:\*.com d:\", we can also enter "copy C:\Command.COM D:\Command.BAK" to make a copy of the file and rename it.
Note: When you use this command for file copying, the destination directory must exist.
6) del--Delete files
The format is "del [disk] [path] [filename] [parameters]", such as Del c:\data\*. BAK ". It has a parameter: "/P", which lets users display a delete query for each file when they delete multiple files.
7) ren--renamed
The format is "REN [formerly] [present name]", after 7.0 version of DOS support to the file name and directory name changes, and the previous DOS can only modify the file name.
8) type--display text file
The format is "TYPE [filename]", which enables you to view the text file.
The above are some common internal commands, in addition to some internal commands, such as the "CLS" screen command, "time" display or change the current times, "date" display or change the current date, "VER" Display system version number, and so on. Using these internal commands enables you to base operations on DOS, and mastering them is a prerequisite for complex operations.