Complete doscommand set (2)

Source: Internet
Author: User

(3) chkdsk -- command for checking the current disk status

1. function: displays the disk status, memory status, and the number of specified files in the specified path.

2. Type: External commands

3. Format: chkdsk [drive letter:] [path] [file name] [/F] [/V]

4. Instructions for use:

(1) If the [file name] parameter is selected, the disk occupied by the file is displayed;

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

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

(4) diskcopy-full disk Copy command

1. function: copy a floppy disk in the same format and content.

2. Type: External commands

3. Format: diskcopy [drive letter 1:] [drive letter 2:]

4. Instructions for use:

(1) If the target floppy disk is not formatted, the system will automatically select and format it during the copy process.

(2) If the original files on the target floppy disk are copied, all files will be lost.

(3) if it is a single-drive copy, the system will prompt you to change the source and target disks in a timely manner. Please note that the source and target disks should be cleaned during operation.

(5) label -- create a disk volume label command

1. function: create, modify, and delete disk volume labels.

2. Type: External commands

3. Format: Label [drive letter:] [Volume name]

4. Instructions for use:

(1) The volume name is the name of the volume to be created. If this parameter is set by default, the system prompts you to enter the volume name or ask whether to delete the original volume name;

(2) The name of the volume consists of 1 to 11 characters.

(6) vol-command for displaying disk volumes

1. function: view the disk volume number.

2. Type: Internal commands

3. Format: Vol [drive letter:]

4. Usage: If the drive letter is omitted, the current drive volume label is displayed.

(7) Scandisk-disk detection and repair commands

1. function: Check whether the fat table, directory structure, and file system of the disk are faulty, and fix the detected problems.

2. Type: External commands

3. Format: Scandisk [drive letter 1:] {[drive letter 2:]…} [/All]

4. Instructions for use:

(1) ccandisk is applicable to hard disks and floppy disks. You can specify multiple disks at a time or use the [/All] parameter to specify all disks;

(2) The system can automatically detect and fix logical errors in the disk, such as crossconnections, lost clusters, and directory structures.

(8) defrag-disk reorganization command

1 .. Function: sorts out disks and removes disk fragments.

2. Type: External commands

3. Format: defrag [drive letter:] [/F]

4. Instructions for use: Use the/F parameter to remove fragments from the disk and adjust the disk file arrangement to ensure there is no gap between files. This speeds up disk reading and saves disk space.

(9) sys -- System Copy command

1. function: transfers the DOS system files Io. sys, msdos. sys, and command. com on the current drive to the specified drive.

2. Type: External commands

3. Format: SYS [drive letter:]

* Usage: if the remaining disk space is insufficient to store system files, the system prompts no roomfor on destination disk.

File Operation commands

(1) copy a file

1. function: copy one or more files to the specified disk.

2. Type: Internal commands

3. Format: copy [Source disk] [path] <source file name> [target disk] [path] [target file name]

4. Instructions for use:

(1) copy is a file-to-file method for copying data. The target disk must be formatted before copying;

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

(3) When copying a file, you must first determine that the target has enough space; otherwise, an insufficient error message appears, prompting that the disk space is insufficient;

(4) The wildcard "*" "?" can be used in the file name. Multiple files can be copied at the same time;

(5) The source file name must be specified in the Copy command and cannot be omitted.

(6) during replication, the target file name can be the same as the source file name, which is called "copy with the same name". At this time, the target file name can be omitted;

(7) When copying a file, the target file name can also be different from the source file name, known as "copying a different name". At this time, the target file name cannot be omitted;

(8) When copying a file, you can also combine several files into one file, which is called "merge copy". The format is as follows: copy; [source disk] [path] <source file name 1> <source file name 2> 〉... [Target disk] [path] <target file name> 〉;

(9) using the Copy command, you can also input data on the keyboard to create a file in the following format: Copy CON [drive letter:] [path] <File Name> 〉;

(10) Note: The format of the Copy command must be blank between the source file name and the target file name!

(2) xcopy-directory Copy command

1. function: copy the specified directory and all files under the directory together with the directory structure.

2. Type: External commands

3. Format: xcopy [Source Disk:] <Source Path Name> [target disk:] [target path name] [/S] [/V] [/E]

4. Instructions for use:

(1) xcopy is an extension of copy. You can copy the specified directory together with the directory structure, but cannot copy hidden files and system files;

(2) specify at least one source drive letter, source target path name, and source file name;

(3) Copy all files in the source directory and Its subdirectories when/s is selected. Unless the/e parameter is specified, the/s will not copy the empty directory. If the/S parameter is not specified, xcopy will only copy the files in the source directory, but will not involve the subdirectories under it;

(4) When the/V parameter is selected, the copied slice is verified, but the speed is reduced.

(3) type -- command for displaying file content

1. function: display the content of the ASCII code file.

2. Type: Internal commands.

3. Format: Type [drive letter:] [path] <File Name> 〉

4. Instructions for use:

(1) display text files consisting of ASCII codes. Files with extensions such as exe. com cannot be read and have no practical significance. 2;

(2) This command can only display the content of one file at a time, and cannot use wildcards;

(3) If the file has an extension, you must enter the extension;

(4) When the file is long and cannot be displayed on a single screen, it can be displayed in the following format; Type [drive letter:] [path] <File Name> | more, more is the screen sharding command, when some parameters are used, the screen is paused when the screen is full. Press any key to continue the display.

(5) If you need to print the file content, it can be in the following format:

Type [drive letter:] [path] <File Name>,> prn

At this time, the printer should be online.

(4) Ren -- command for renaming files

1. function: Change the file name

2. Type: Internal commands

3. Format: Ren [drive letter:] [path] <old file name> <New File Name> 〉

4. Instructions for use:

(1) The drive letter and path cannot be added before the new file name, because the command can only replace the file name on the same disk;

(2) allow wildcard characters to change a group of file names or extensions.

(5) FC-file comparison command

1. function: Compare the similarities and differences of files, and coordinate different places on business trips.

2. Type: External commands

3. format: FC [drive letter:] [path name] <File Name> [drive letter:] [path name] [file name] [/A] [/B] [/C] [/n]

4. Instructions for use:

(1) Select/A as the ASCII code comparison mode;

(2) Select/B as the binary comparison mode;

(3) Use the/C parameter to treat uppercase and lowercase characters as the same characters.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.