Doscommand in Windows XP

Source: Internet
Author: User

 

◆ Command: Dir, column file, directory
Add parameter:/-C
Parameter description: the size of the files displayed in the Dir column and directory. The values are separated by thousands. this parameter is used to remove the separators in the display, to meet the visual habits of some people.
Add parameter:/Q
Parameter description: Windows is a multi-user operating system. When this parameter is used to list files and directories in the "DIR/Q" column, the user attributes of files and directories are displayed.
Add parameters:/T: C,/t: A,/t: W
Parameter description: this parameter is used: "DIR/T: C", "DIR/T: A", and "DIR/T: W "displays the file, Directory Creation Time, last access time, and last modification time respectively.
Add parameter:/x
Parameter description: When this parameter is used, that is, the "DIR/X" column file and directory, the "8.3" Format File Name is displayed for the long file name.
◆ Command: CD, change Directory
Add parameter:/d
Parameter description: this parameter is used to quickly change the current directory. For example, if the current directory is C: Windows, you can use the command "CD/d e: Tools" to quickly switch to the E: Tools directory. Note: This parameter can be used only in the DOS window obtained by entering "cmd" in the "run" text box of Win XP.
◆ Command: MD, create directory
Function Description: This command does not add parameters, but enhances the function. It can create multi-level sub-directories at a time, for example, run the "MD aabbccdd" command to create sub-directories AA, BB, CC, and DD at one time. In earlier versions of DOS, if the AA sub-directory does not exist, it is impossible to directly create BB and other deep sub-directories under AA.
◆ Command: RD, delete directory
Add parameter:/s
Parameter description: this parameter is used to delete the directory tree, that is, to delete all subdirectories and files in the directory, which is equivalent to the deltree command in earlier versions.
Add parameter:/Q
Parameter description: When the/S parameter is used to delete the directory tree, the system will ask the user to confirm whether to delete the directory tree. If you use the/Q Parameter "RD/S/Q" at the same time, the deletion operation will be canceled, which is equivalent to the/y parameter of the deltree command.
◆ Command: del, delete file or directory
Add parameter:/F
Parameter description: this parameter can be used to delete read-only files.
Added parameters:/s and/Q.
Parameter description: this parameter is used to delete all subdirectories and files in directories and directories. You can also use parameter/Q to cancel system confirmation during the delete operation.
Add parameter:/
Parameter description: deletes files other than a specified attribute or a specified attribute./AR,/AH,/As, And/AA indicate the deletion of read-only, hidden, system, and archive files, /A-R,/a-h,/a-s,/A-A means to delete files except read-only, hidden, system, archive. For example, "del/AR *. *" indicates that all read-only files under the current directory are deleted, and "del/A-S *. *" indicates that all files except system files under the current directory are deleted.
◆ Command: attrib. Change the attributes of a file or directory.
Add parameter:/d
Parameter description: In Win XP, we cannot set files or folders as system properties, but only read-only, hidden, or archive properties. The attrib command with the parameter/D can be used to set all attributes of the file. It must be used with the parameter/s at the same time. For example, "attrib/S/D + s d: Study" is used to set the D: study folder as the system folder.
◆ Command: format, format the disk
Add parameter:/Fs: filessystem
Parameter description: format a disk based on the specified file system type (fat, FAT32, NTFS), for example, "format/Fs: NTFS ".
◆ Command: date, time, display system date and time
Add parameter:/T
Parameter description: "Date/T" and "Time/t" only display the current date and time without entering a new date and time.

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.