Current location - Quotes Website - Personality signature - Find all CMD instructions
Find all CMD instructions
DOS Command Set-Call DOS Command Set-Call (1)MD- Create Subdirectory 1. Function: Create a new subdirectory 2. Type: internal command 3. Format: MD[ drive letter] [path name] 4. Instructions for use: (1) "Drive letter": (2) "Path name": the parent directory name of the subdirectory to be created; By default, it will be created in the current directory. Example: (1) Create a subdirectory named FOX under the root directory of drive C; (2) Create a user subdirectory under the FOX subdirectory. C:, > mdFOX (create a subdirectory fox under drive C) C:, > mdfox, USER (create a user subdirectory under the fox subdirectory) (2)CD- change the current directory 1. Function: Display the current directory 2. Type: internal command 3. Format: CD[ drive letter:] [path name] [subdirectory (2) If the format of "CD," is adopted, the root directory will be returned; (3) If it is a CD, it is adopted. Format returns to the previous directory. Example: (1) enters the user subdirectory; (2) returning from the user subdirectory to the subdirectory; (3) Return to the root directory. C:, > > CD FOX, USER (enter the USER subdirectory under the FOX subdirectory) C:, FOX, user > CD. (Return to the root directory at the next higher level) c:, fox > CD, (Return to the root directory) c:, > (3)rd- Delete subdirectory command 1. Function: Delete the directory from the specified disk. 2. Type: internal command 3. Format: RD[ drive letter:] [path name] [subdirectory name] 4. Instructions for use: (1) Before deleting, the subdirectory must be empty, that is to say, you need to enter the subdirectory first, delete the files under it with DEL (the command to delete files), and then return to the previous directory and delete it with RD command. (2) The root directory and the current directory cannot be deleted. Example: You need to delete the user subdirectory under the FOX subdirectory of drive C, as follows: Step 1: Delete the files under the user subdirectory first; DEL C:, FOX, USER, *. * Step 2, delete the user subdirectory. C, > > RD C:, FOX, USER(4)dir- show disk directory command 1. Function: Display the contents of the disk directory. 2. Type: internal command 3. Format: DIR[ drive letter] [path] [/P] [/w] 4. Instructions for use: /p Usage; When there are too many directories to view, the screen will always scroll up and it is not easy to read. After adding the /P parameter, the screen will display 23 lines of file information at a time, and then pause and prompt; Use Press any key to continue /W: Add /W to display only the file name and ignore the file size and creation date and time. After adding parameters, five file names can be displayed per line. Path-path setting command 1. Function: The device can search the path of executable files, which is only valid for files. 2. Type: internal command 3. Format: PATH[ drive letter 1] directory [pathname1] {[; Drive letter 2:], ...} 4. Instructions for use: (1) When running an executable file, DOS will first search the file in the current directory and run it if it is found; If no files can be found, search the files one by one in the directory according to the PATH set by the path command; (2) If there are more than two 2) paths in the path command, use semicolons between them. Separate; (3) there are three ways to use the PATH command: PATH[ drive letter 1:][ PATH number 1][ drive letter 2:][ path 2] ... (set the search path for executable files) path: (cancel all paths) path: (display the currently set path) (6)Tree- display. 2. Type: external command 3. Format: TREE[ drive letter:] [/F] ["prn] 4. Description: (1) When the /f parameter is used, all directories and all files under them will be displayed; When omitted, only the directory is displayed, and the files under the directory are not displayed. (2) When the parameter > > PRN is selected, the listed directories and file names in the directories will be printed. (7)del tree- Delete the entire directory command 1. Function: Delete the whole directory and its subdirectories and files. 2. Type: external command 3. Format: DELTREE[ drive letter:] 4. Description: This command can delete a directory and all its files, subdirectories and subordinate subdirectories in one step, and DELTREE will delete the files equally and correctly as long as they are located in the deleted directory, regardless of whether the file attributes are hidden, system or read-only. Be careful when using it! ! ! V. Disk Operation Command (1)Format- Disk Format Command 1. Function: format disk, divide tracks and sectors; At the same time, check whether the whole disk has bad tracks and mark the bad tracks; Establish directory area and file allocation table to make the disk ready to receive DOS. 2. Type: external command 3. Format: Format [/s] [/4] [/q] 4. Note: The drive letter after the (1) command is essential. If you format the hard disk, you will be prompted as follows: Warning: All data on disk drive C: cannot be moved. Continue formatting (Yes/No)? (Warning: All data is on drive C and will be lost. Are you sure you want to continue formatting? (2) If the floppy disk is formatted, the following prompt will appear: Insert a new floppy disk for drive A; Press Enter when you are ready ... (Insert a new disk into drive A and press Enter when you are ready). (3) Select the [/S] parameter to copy the DOS system file IO. SYS,MSDOS。 SYS and COMMAND.COM to the disk, so that the disk can be used as a DOS startup disk. If the /S parameter is not selected, the formatted disk can only read and write information and cannot be used as a startup disk; (4) Select the [/4] parameter to format the 360KB low-density disk in the 1.2MB high-density floppy drive; (5) Select the [/Q] parameter, quick format, which will not re-divide the tracks and sectors of the disk, but only empty the disk root directory, file allocation table and boot sector, so the formatting speed is faster. (6) Select the [/U] parameter, which means unconditional formatting, that is, destroy all data on the original disk. If you do not add /U, it will be formatted for security reasons. At this time, a mirror file will be created to save the original FAT table and root directory, and UNFORRMAT can be used to restore the original data if necessary. (2) Unformat and resume formatting command 1. Function: Recover the disk that lost data due to formatting error. 2. Type: external command 3. Format: UNformAT