DOS common command (2)

xiaoxiao2021-03-06  27

Chkdsk - Check Disk Current Status Command

1. Function: Display disk status, memory status, and discontinuous number of specified files under specified paths.

2. Type: External Command

3. Format: Chkdsk [Disk] [Path] [File Name] [/ f] [/ V]

4. Instructions for use:

(1) Select the [File Name] parameter, the case where the file is displayed;

(2) Select the [/ F] parameters to correct the logic errors found on the specified disk;

(3) Select the [/ V] parameter, display all the files and paths on the disk.

(4) DiskCopy - intending to copy command

1. Function: Copy format and floppy disk that is exactly the same.

2. Type: External Command

3. Format: DiskCopy [Disk 1:] [Disk 2:]

4. Instructions for use:

(1) If the target floppy disk is not formatted, the system is automatically selected when copying.

(2) If the original file on the target floppy is copied, it will be lost.

(3) If it is a single drive copy, the system will prompt time-replacement source disk and target disk, pay attention to the source disk and target disk when operating.

(5) Label - build disk volume label command

1. Function: Establish, change, delete disk scroll.

2. Type: External Command

3. Format: Label [Disk] [Volume Label]

4. Instructions for use:

(1) The volume is named as the volume labeled name to be established. If this parameter is deficient, the system prompts to type the volume name or ask if the original volume labeled name is deleted;

(2) The volume is constructed from 1 to 11 characters.

(6) VOL - Display Disk Booster Commands

1. Function: View the disk volume mark.

2. Type: internal command

3. Format: Vol [Disk]

4. Instructions for use: omitted the disc character, display the current drive scroll.

(7) ScanDisk - detection, repair disk command

1. Function: Detecting a disk's FAT table, directory structure, file system, etc. have problems, and can fix the detected issues.

2. Type: External Command

3. Format: Scandisk [Disk 1:] {[Disk 2:] ...} [/ all]

4. Instructions for use:

(1) CCANDisk is suitable for hard disk and floppy disk, you can specify multiple disks at a time or to specify all disks for [/ all] parameters;

(2) The logical errors such as cross-linking, loss clusters, and directory structures that occur during the disk can be automatically detected, and fix them.

(8) DEFRAG - Reforming Disk Command

1. . Function: Monitor disk and eliminate disk scaffold.

2. Type: External Command

3. Format: DEFRAG [Drive:] [/ f]

4. Instructions: Select / F parameters to eliminate fragmentation on the file, and adjust the arrangement of disk files to ensure that there is no gap between files. To speed up the speed of the disk and save disk space.

(9) SYS - System Replication Command 1. Function: Transfer the DOS system files IO.SYS, MSDOS.SYS, and Command.com on the current drive to the specified drive.

2. Type: External Command

3. Format: SYS [Disk]

* Instructions: If the disk remaining space is not enough to store system files, then prompt: no roomfor on destination disk.

File operation class command

(1) Copy file copy command

1. Function: Copy one or more files to the specified disk.

2. Type: internal command

3. Format: COPY [Source Disk] [Path] [Target Path] [Path] [Target File Name]

4. Instructions for use:

(1) COPY is the file copy data on the file, and the target disk must have been formatted before replication;

(2) During the copy process, the old file on the same file name on the target disk will be replaced by the source file;

(3) When copying the file, you must first determine enough space, otherwise it will appear; InsufFicient's error message, prompting disk space insufficient;

(4) The file name is allowed to use the generalization "*" "?", And multiple files can be copied at the same time;

(5) The source file name in the copy command must be pointed out that it is not omitted.

(6) When copying, the target file name can be the same as the source file name, called "the same name copy", and the target file name may be omitted;

(7) When copying, the target file name can also be different from the source name, referred to as "a copy copy", at this time, the target file name cannot be omitted;

(8) When copying, you can also merge several files into a file, called "merge copy", the format is as follows: Copy; [source disk] [Path] ... [ Target disk] [Path] ;

(9) Using the COPY command, you can also enter the data to establish files from the keyboard, the format is as follows: Copy Con [Disk:] [Path] ;

(10) Note: The usage format of the copy command, the source file name and the target file name must have space!

(2) XCOPY - Directory copy command

1. Function: Copy all files in the specified directory and directory together with the directory structure.

2. Type: External Command

3. Format: xcopy [source disk:] [Target Drive:] [Target path name] [/ s] [/ v] [/ e]

4. Instructions for use:

(1) Xcopy is the expansion of COPY, can copy the specified directory and directory structure, but cannot copy hidden files and system files;

(2) Use the time source disk, source target path name, and source file names at least one;

(3) Use / s to copy all the files under the source directory and its subdirectory. Unless specified / e parameters, / s does not copy the empty directory, if the / s parameter is not specified, the XCopy only copies the source directory itself, and does not involve the subdirectories under which it is; (4) When using the / v parameter, The sector of the pair is checked, but the speed will be reduced.

(3) TYPE - display file content command

1. Function: Displays the contents of the ASCII code file.

2. Type: Internal Command.

3. Format: Type [Disk] [Path]

4. Instructions for use:

(1) Display text files consisting of ASCII code, right. EXE.COM, etc., the content of its display is unread, there is no practical meaning 2;

(2) This command can only display the content of a file at a time, and the wildcard cannot be used;

(3) If the file has an extension, the extension must be written;

(4) When the file is longer, when the screen is displayed, it can be displayed in the following format; Type [Display:] [Path] | more, more is the split screen display command, after using some parameters Work will be paused, pressing any key to continue display.

(5) If you need to print the contents, you can use the following format:

TYPE [Drive:] [Path] ,> PRN

At this point, the printer should be in a online state.

(4) REN - file rename command

1. Function: Change the file name

2. Type: internal command

3. Format: REN [Disk] [Path]

4. Instructions for use:

(1) You cannot add the disk and path before the new file name, because the command can only replace the file name on the file on the same plate;

(2) Allows a set of file names or extensions using wildcard.

(5) FC - file comparison command

1. Function: Compare the difference in the file, and lists the differences.

2. Type: External Command

3. Format: FC [Drive:] [Path Name] [Distribution:] [Path Name] [File Name] [/ A] [/ B] [/ C] [/ n]

4. Instructions for use:

(1) Select / a parameter to compare the ASCII code;

(2) Select / b parameter to compare the binary comparison mode;

(3) Select / c parameters to see the case as the same character.

(4) Select / n parameters, in the ASCII code comparison mode, display the line number of the difference.

(6) Attrib - Modify the file attribute command

1. Function: Modify the properties of the specified file. (See 2.5.4 (2) File Properties section) section)

2. Type: External Command.

3. Format: attrib [file name] [R] [- r] [A] [- a] [h] [- h] [s] [- s] [/ s]

4. Instructions: (1) Select the R parameter, set the specified file to read-only properties, so that this file can only be read, cannot be written to data or delete; select -R parameters to remove read-only properties;

(2) Select a parameter to set the file to file properties; select -A parameters to remove file properties;

(3) Select the H parameters, adjust the file to impide the implied attribute; choose -h parameters to hidden attributes;

(4) Select the S parameters to set the file as the system properties; select -S parameters to remove system properties;

(5) Select / s parameters to set all the subdirectories and settings to the current directory.

转载请注明原文地址:https://www.9cbs.com/read-65577.html

New Post(0)