Check what doscommands are available on the hard disk

Source: Internet
Author: User

Check what doscommands are available on the hard disk

DOS External commands and DOS dictionary external Commands DOS External commands are some applications that make your operations more convenient and in-depth. These external commands exist in the form of files. Dos External commands in windows are stored in the "command" directory in the windwos home directory. Next let's take a look at some common dos External commands.
1) format (format. com) -- The formatting command is well known. The newly purchased disk must be formatted before it can be used. The format command can be used to format the floppy disk and hard disk,
Format: "format [drive letter] [parameter]",
For example, "format A:/s ".
It has two common parameters:/Q: for quick formatting;
/S: complete the formatting and copy the system boot file to the disk.
Note: This command clears all data on the target disk and must be used with caution.
If common formatting is performed, the data on the disk may be recovered. However, if "/Q" is added, it is more difficult to restore the data than to last day.

2) edit (edit. com) -- The editing command is actually a text editing software (), which can be used to conveniently edit text files in DOS, the format is "Edit [file name] [parameter]". Its parameters are not very practical and I will not talk about them here.

3) sys (SYS. com)-the system boot file transmission command that can transmit several files, such as Io. sys, to the target disk for boot and startup.
Format: "sys [drive letter]"

4) attrib (attrib. EXE) -- The File Attribute setting command through which we can view and change the file attributes.
The format is "attrib [path] [file name] [parameter]". If no parameter is added, it is the display file attribute. Its Parameters include "+? "And "-? "Two ,"? "Represents the Property Code. These codes are:" H "hidden;" S "system;" R "read-only," + "indicates granting, and"-"indicates removing.

5) xcopy (xcopy. EXE) -- Copy command this command is enhanced on the basis of "copy" to copy multiple subdirectories. It has many parameters, but is most commonly used "/s". It can copy multiple subdirectories under a directory, and "/E" can copy empty directories.
The format is "xcopy [Source Path] [Source directory/file name] [destination directory/file name] [parameter]".

6) Scandisk (Scandisk. EXE) -- the disk scanner command is very useful in actual operations. It can scan and fix the disk and solve most disk file damage problems. The format is "Scandisk [drive letter:] [parameter]". The following are its parameters:
/Fragment [drive name:/path/file name]: This parameter can be used to show whether the file contains broken blocks. We can solve this problem by running the disk sorting program;
/All: Check and repair all local drives;
/AutoFix;
/Checkonly: Only checks the disk and does not fix the error;
/Custom: Based on Scandisk. to run Scandisk and Scandisk. INI is a text file that contains settings for the Scandisk program. The [custom] block is executed only after the "/custom" parameter is added, users can perform different settings based on their own situations;
/Nosave: directly Delete the lost cluster after checking and does not convert it to a file;
/Nosummary: The check summary is not displayed. After the check is completed, the program will be exited;
/Surface: perform a disk surface scan after completing the preliminary check;
/Mono: Run Scandisk in monochrome format. We can add different parameters according to different situations.
You can run "Scandisk/All/checkonly/nosave/nosummary" to check the disk and exit automatically. You can also edit Scandisk. set in the INI file, and then run "Scandisk/custom ". If there are many damaged files, we can use "/AutoFix" for automatic repair, otherwise you will be busy.

7) chkdsk (chkdsk. EXE) -- the disk check Command checks the disk and displays a disk status report. The format is "chkdsk [drive letter:] [parameter]". The most common parameter is "/F". You can fix file errors.

8) Move (move. EXE) -- the file movement command can be used to move the file. The format is "Move [source file] [Destination path]". Wildcard characters can also be used.

9) deltree (deltree. EXE) -- The DELETE command is a super enhanced version of the del command. It not only deletes files, but also deletes the specified directory and all files and subdirectories under it. You can easily delete directories. In the format of "deltree [file/path] [parameter]", the parameter has a "/Y". When used, the system will ask each file and answer "Y" before deleting it.

10) fdisk (fdisk. EXE)-partition command we can use it to partition the hard disk, I will explain in the next section. These are commonly used dos External commands, which can make your operations more convenient and are also essential for system repair.

Please master every command and its usefulness. More doscommand command function ctty change control device attrib set file attribute emm386 extended memory management defrag disk fragment fdisk hard disk partition doskey call and create DoS macro command LH/loadhigh load program into high-end memory debug program debugging command move file, change directory name FC file comparison prompt setting prompt more split screen display smartdrv set disk accelerator set environment variable SUBST path replace setver set version xcopy copy directory and file vol display specified disk volume label

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.