i) md--to build subdirectories
1. Function: Create a new subdirectory
2. Type: Internal command
3. Format: md[Letter: [path name]〈 subdirectory name]
4. Instructions for use:
(1) "Disk character": Specifies the letter of the disk drive to establish the subdirectory, if omitted, the current drive;
(2) "Path name": The parent directory name of the subdirectory to be established, if the default is in the current directory.
Example: (1) Create a subdirectory named Fox under the root of C disk, (2) and create a user subdirectory under Fox subdirectory.
C:, >MD Fox (Create a subdirectory under the current drive C disk Fox)
C:, >MD Fox, User (Create a user subdirectory under Fox subdirectory)
(ii) cd--change the current directory
1. Features: Displaying the current directory
2. Type: Internal command
3. Format: cd[Letter: [path name] [subdirectory name]
4. Instructions for use:
(1) The current directory is displayed if the path and subdirectory name are omitted;
(2) If the "CD," format, then back to the root directory;
(3) If "CD" is used. "Format is returned to the previous directory.
Example: (1) go to the User subdirectory, (2) return from the user subdirectory to the subdirectory, (3) return to the root directory.
C:, >CD Fox, User (enter the user subdirectory under Fox subdirectory)
C:, FOX, USER>CD. (Return to the previous level root directory)
C:, FOX>CD, (return to root directory)
C:, >
(iii) rd--Delete subdirectory command
1. Function: The directory was removed from the specified disk.
2. Type: Internal command
3. Format: rd[Letter: [path name] [subdirectory name]
4. Instructions for use:
(1) The subdirectory must be empty before deletion, that is to say, you need to enter the subdirectory, use the DEL (delete file command) to delete the file in its subdirectory, and then go back to the previous level of the directory, using the RD command to remove the directory itself;
(2) The root directory and the current directory cannot be deleted.
Example: required to delete the user subdirectory under the C disk Fox subdirectory, as follows:
The first step: first, the user subdirectory of the file deleted blank;
C, >del C:, FOX, USER, *. *
In the second step, delete the user subdirectory.
C, >rd C:, FOX, USER
(iv) dir--display disk Directory command
1. Features: Displays the contents of the disk directory.
2. Type: Internal command
3. Format: DIR [disk character] [path][/p][/w]
4. Use instructions:/p for use; When you want to see too many directories, unable to display the screen in a screen will always roll up, not easy to see, plus/P parameters, the screen will be displayed 23 lines of file information once, then paused, and prompted; Press any key to continue
/w use: plus/w only display file name, as for file size and date and time of establishment are omitted. With parameters, each row can display five file names.
: [Path 2] ... (Set the search path for the executable file)
Path: (Cancel all paths)
Path: (shows the path that is currently set)
(vi) tree--display disk directory structure command
1. Features: Displays all directory paths on the specified drive and all file names under these directories.
2. Type: External command
3. Format: tree[Letter:][/f]["PRN]
4. Instructions for use:
(1) Use/F parameters display all directories and directories under all the files, omitted, only show the directory, do not display the directory under the file;
(2) When selecting the >prn parameter, the listed directory and the file name in the directory are printed and exported.
(vii) deltree--delete entire Directory command
1. Function: Deletes the entire directory and its subordinate subdirectories and files.
2. Type: External command
3. Format: deltree[Letter:]〈 path name
4. Use instructions: This command can be in one step to delete the directory and all of its files, subdirectories, lower subdirectories together, and regardless of the file's property is hidden, system or read-only, as long as the file is located under the deleted directory, deltree, according to delete. You must be careful when using!!!
V. Disk Operations Class command
(i) format--Disk Format command
1. Function: Format the disk, divide the tracks and sectors, and check the entire disk for any defective tracks, mark the bad, and set up the directory area and file allocation table to prepare the disk for receiving DOS.
2. Type: External command
3. Format: Format〈 letter: 〉[/s][/4][/q]
4. Instructions for use:
(1) The letter after the command can not be default, if the hard disk is formatted, the following prompts: Warning:all DATA on non--removable disk
DRIVE C:will be LOST!
Proceed with Format (y/n)?
(Warning: All data on C disk, will be lost, do you really want to continue formatting?) )
(2) If the floppy disk is formatted, the following prompts: Insert MEW diskette for drive A;
and press ENTER when ready ...
(Insert a new disk in a drive and press ENTER when ready).
(3) Choose the [/S] parameter, the DOS system file will be Io.sys and MSDOS. SYS and Command.com to disk so that the disk can be a DOS boot disk. If not selected/s parameter, the formatted gun disk can only read and write information, but not as a startup disk;
(4) SELECT [/4] parameter, format 360KB low density disk in 1.2MB high-density floppy drive;
(5) Choose [/Q] Parameters, fast format, this parameter does not redistribute the disk's magnetic pious and sector, only the disk root directory, file allocation table and the boot sector to clear blank, so the format faster.
(6) Choose the [/u] parameter to express the unconditional format, that is, destroy all the data on the original disk. Without/U, the security format, the first set up a mirror file to save the original fat table and root directory, if necessary, you can restore the original data unforrmat.
(ii) UNFORMAT restore Format command
1. Function: Restores a disk that has lost data in a malformed operation.
2. Type: External command
3. Format: Unformat〈 Letter 〉[/l][/u][/p][/test]
4. Usage Description: Used to restore a disk that is "non-destructive" formatted. The deleted files or subdirectories under the root directory and the system sectors of the disk (including fat, root, boot sector, and hard disk partition tables) can also be rescued with Unformat.
(1) Use the/L parameter to list the subdirectory name, file name, Da Hio Date and other information, but do not really do format work.
(2) Use the/p parameter to send the report displayed on the screen (the information generated by the/L parameter) to the printer at the same time. The Run-time screen will display: "Print out Will is sent to LPT1"
(3) Choose the/test parameter only to do the simulation test (test) do not do the real write action. Using this parameter screen will show: "Simulation Only"
(4) Choose/u parameter does not use mirror image file data, directly according to the disk status of the Unformat.
(5) Select/PSRTN and repair hard disk partition table.
If you add/p,/L, and/test after the letter is equivalent to using the/u parameter, unformat "assumes" that the disk does not have a mirror image file at this time.
Note: Unformat for just the format of the disk, you can fully restore, but if the format after the other data written, then Unformat can not complete the rescue data. Unformat is not omnipotent, because the use of Unformat will rebuild fat and root directory, so it also has a high risk, improper operation may expand the loss, if only mistakenly deleted a few files or subdirectories, just to use the undelete is enough.