New features of DOS commands in Windows XP

  

Since the launch of Windows XP operating system, people have rarely noticed the DOS operating environment that comes with Win XP when they are enthusiastically using Win XP. In fact, they have already been used in Win XP. Enhance the function of some DOS commands, the so-called "old tree open new flowers", let us take a look at the functional changes of DOS under Win XP.

Command: Dir, column file, directory


Add parameter: /-C

Parameter description: DIR column file, directory display file size, its Values ​​are separated in thousands. Using this parameter, “DIR/-C” will cancel the separator in the display to meet the visual habits of some people.

Add parameters: /Q

Parameter Description: Windows is a multi-user operating system. When this parameter is used as the "DIR /Q" column file or directory, the user who will display the file and directory will be displayed. Attributes.

Add parameters: /T:C, /T:A, /T:W

Parameter description: Use this parameter to be "DIR/T:C", "DIR/T:A ", "DIR/T:W" shows the file, the creation time of the directory, the last access time, and the last modification time.

Add parameters: /X

Parameter description: When using this parameter, ie "DIR/X" column file and directory, the file name of "8.3" format will be displayed for long file name.

Command: CD, change directory

Add parameter: /D

Parameter Description: The function of this parameter is to quickly change the current directory, for example, the current directory is C:Windows. Use the command "CD/DE:Tools" to quickly switch to the E:Tools directory. Note: This parameter can only be used 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 it has enhanced functions. It can create multi-level subdirectories at a time, for example, using the command "MD AABBCCDD" Create four-level subdirectories of AA, BB, CC, and DD at one time. In the old version of DOS, if there is no AA subdirectory, it is impossible to directly create a deep subdirectory such as BB under AA.

Command: RD, delete directory

Add parameter: /S

Parameter description: Use this parameter, ie "RD/S" to delete the directory tree, ie delete the directory And all subdirectories and files under the directory, equivalent to the DELTREE command in the previous version.

Add parameters: /Q

Parameter Description: When using the /S parameter above to delete the directory tree, the system will ask the user to confirm whether it is really necessary to delete. If the /Q parameter is "RD/S /Q" at the same time, the confirmation will be 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 the read-only file.

Add parameters: /S, /Q

Parameter description: Use this parameter, that is, "DEL/S" works exactly the same as "RD/S", that is, delete all the directories and directories. Subdirectories and files. Using the parameter /Q at the same time cancels the system confirmation when the delete operation is performed.

Add parameters: /A

Parameter Description: Delete the specified attributes or files other than the specified attributes, /AR, /AH, /AS, /AA respectively indicate delete read-only, hidden, system , archive files, /AR, /AH, /AS, /AA means to delete files other than read-only, hidden, system, archive. For example, "DEL/AR *.*" means to delete all read-only files in 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 parameters: /D

Parameter Description: In Win XP we can not set files or folders as system Attributes can only be set to read-only, hidden, or archive attributes. With the parameter /D use the ATTRIB command to set all the properties of the file, the settings must be used with the parameter /S. For example, "ATTRIB /S /D +S D:Study", the role is to set the D:Study folder as a system folder.

Command: Format, Format Disk

Add Parameter: /FS:filessystem

Parameter Description: Format the disk according to 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: Use this parameter to be "DATE/T", "TIME/T" will only display the current date and time without having to enter a new date and time.

Copyright © Windows knowledge All Rights Reserved