Detailed DOS commands in Windows XP

Source: Internet
Author: User
Command: DIR, column file, directory





&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Add parameter:/-c


parameter Description: DIR column file, directory when the size of the file displayed, the number is divided in thousand units, use this parameter, that is, "Dir/-c" will cancel the display of the separator, to meet the visual habits of some people.





Add parameter:/q


parameter Description: Windows is a multi-user operating system, using this parameter, "dir/q" column files, directories, will display the file, directory user properties.





Add Parameters:/t:c,/t:a,/t:w


parameter Description: Use this parameter namely "Dir/t:c", "dir/t:a", "dir/t:w" to display the file, directory creation time, last access time and last modified time respectively.





Add parameter: x


parameter Description: When using this parameter, the "dir/x" column file, the directory, the file name of "8.3" is displayed for the long file name.





command: CD, change directory





Add parameter:/d


parameter Description: The role of this parameter is to quickly change the current directory, such as the current directory is C:\Windows, using the command "cd/d E:\Tools" can quickly switch to the E:\Tools directory. Note: This parameter can only be used in a DOS window obtained by typing "CMD" in the "Run" text box of Win XP.





Command: MD, create directory





Feature Description: This command does not add parameters, but enhances the functionality, it can create multiple levels of subdirectories, such as using the command "MD AA\BB\CC\DD" will be a one-time create AA, BB, CC, DD four-level subdirectory. In the old version of DOS, if there is no AA subdirectory, it can not directly establish a AA under the BB and other deep subdirectories.


command: RD, deleting directory





Add parameter:/S


parameter Description: Using this parameter, "RD/S" is used to delete the directory tree, that is, to delete all subdirectories and files in the directory and directory, equivalent to the deltree command in previous versions.





Add parameter:/q


parameter Description: When using the above/s parameter to delete the tree, the system asks the user to confirm that it is actually being deleted. If you use the/q parameter, "RD/S/Q", the confirmation is canceled when the delete operation is performed, which is equivalent to the y parameter of the deltree command.


 


command: DEL, delete file or directory





Add parameter:/F


parameter Description: Use this parameter, "del/f", to delete a read-only file.





Add Parameters:/S,/q


parameter Description: Using this parameter, the "del/s" effect is exactly the same as "rd/s", which deletes all subdirectories and files in the directory and directory. Parameter/q is also used to cancel the system acknowledgement when the delete operation is in action.





Add parameter:/a


Parameter description: Deletes a specified attribute or a file other than the specified property,/ar,/ah,/as,/AA, respectively, to delete read-only, hidden, system, archive,/a-r,/a-h,/a-s,/a-a means to delete files except read-only, hidden, system, archive. For example, "Del/ar *.*" means to delete all read-only files under the current directory, and "Del/a-s *.*" means to delete all files except the system files in the current directory.





command: ATTRIB, change the properties of a file or directory





Add parameter:/d


parameter description: In Win XP we can not set the file or folder as System Properties, can only be set to read-only, hidden or archived properties. With parameter/d use the attrib command to set all the properties of the file, which must be used in conjunction with the parameter/s. For example, "attrib/s/D +s D:\Study" is the role of setting the D:\Study folder as a system folder.





command: Format, formatting disk





Add parameter:/fs:filessystem


parameter Description: Format the disk by the specified file system type (FAT, FAT32, NTFS), such as "Format/fs:ntfs".





command: Date, time, display system dates and times





Add parameter:/T


parameter Description: Using this parameter, "date/t", "time/t" will display only the current date and time, without having to enter 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.