DOS command
(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.
(v) path--path setting command
1. Function: The search path for the device executable file, only valid for the file.
2. Type: Internal command
3. Format: path[1] directory [path name 1]{[, disk 2:],〈 directory pathname 2〉 ...}
4. Instructions for use:
(1) When running an executable file, DOS first search the file in the current directory, if found, run it; if the file is not found, the path to the directory to search for the file in sequence;
(2) The path in the path command, if there are more than two, the paths are separated by a semicolon ";";
(3) There are three ways to use the path command:
path[Letter 1:][Path 1][disk character 2:][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!!!
Current 1/6 page
123456 Next read the full text