China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 09:15
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Enhanced DOS Commands in XP View 1,688 Replies 6
Original Poster Posted 2002-11-02 00:00 ·  中国 湖北 随州 电信
元老会员
★★★
Credits 1,987
Posts 632
Joined 2002-10-27 00:00
23-year member
UID 73
Gender Male
Status Offline
"Lian Po is old indeed, but can he still eat?", this is a kind of prejudice many people have toward DOS under the Windows operating system. In fact, DOS still plays an important role in system maintenance work. Ever since Microsoft released the Windows XP operating system, people have eagerly thrown themselves into the embrace of Win XP to pay attention to it, understand it, and use it, yet very few have noticed the DOS operating environment that comes with Win XP. Actually, Win XP has already added functions to some DOS commands. As the saying goes, "an old tree puts forth new blossoms"—below, let us experience the functional changes of DOS under Win XP together.

◆Command: DIR, list files and directories

Added parameter: /-C
Parameter explanation: When DIR lists files and directories, the displayed file size values are separated by thousands. Using this parameter, that is, "DIR/-C", will cancel the separator in the display, to suit some people's visual habits.

Added parameter: /Q
Parameter explanation: Windows is a multi-user operating system. Using this parameter, that is, "DIR /Q", when listing files and directories, will display the user attributes of the files and directories.

Added parameters: /T:C、/T:A、/T:W
Parameter explanation: Using these parameters, that is, "DIR/T:C", "DIR/T:A", and "DIR/T:W", will respectively display the creation time, last access time, and last modification time of files and directories.

Added parameter: /X
Parameter explanation: Using this parameter, that is, "DIR/X", when listing files and directories, it will also display the "8.3" format filename for long filenames.

◆Command: CD, change directory

Added parameter: /D
Parameter explanation: The function of this parameter is to quickly change the current directory. For example, if 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 the DOS window obtained by entering "CMD" in Win XP's "Run" text box.

◆Command: MD, create directory

Function explanation: This command has not added any parameters, but its function has been enhanced. It can create multi-level subdirectories at one time. For example, using the command "MD AA\BB\CC\DD" will create the four levels of subdirectories AA, BB, CC, and DD in one go. In older versions of DOS, if the AA subdirectory did not exist, it would be impossible to directly create deeper subdirectories such as BB under AA.

◆Command: RD, delete directory

Added parameter: /S
Parameter explanation: Using this parameter, that is, "RD/S", is used to delete a directory tree, meaning the directory and all subdirectories and files under it are deleted, equivalent to the DELTREE command in earlier versions.

Added parameter: /Q
Parameter explanation: When using the above /S parameter to delete a directory tree, the system will ask the user to confirm whether it should really be deleted. If the /Q parameter is also used, that is, "RD/S /Q", confirmation will be canceled during the deletion operation, equivalent to the /Y parameter of the DELTREE command.

◆Command: DEL, delete files or directories

Added parameter: /F
Parameter explanation: Using this parameter, that is, "DEL/F", can delete read-only files.

Added parameters: /S、/Q
Parameter explanation: Using this parameter, that is, "DEL/S", has exactly the same function as "RD/S", namely deleting the directory and all subdirectories and files under it. If the /Q parameter is used at the same time, system confirmation during deletion can be canceled.

Added parameter: /A
Parameter explanation: Delete files with specified attributes or files other than those with specified attributes. /AR, /AH, /AS, /AA respectively mean deleting read-only, hidden, system, and archive files; /A-R, /A-H, /A-S, /A-A mean deleting files other than read-only, hidden, system, and archive files. For example, "DEL/AR *.*" means deleting all read-only files in the current directory, and "DEL/A-S *.*" means deleting all files in the current directory except system files.

◆Command: ATTRIB, change file or directory attributes

Added parameter: /D
Parameter explanation: In Win XP we cannot set a file or folder to the system attribute; it can only be set as read-only, hidden, or archive. But using the ATTRIB command with the /D parameter can set all attributes of files. When setting them, it must be used together with the /S parameter. For example, "ATTRIB /S /D +S D:\Study”" sets the D:\Study folder as a system folder.

◆Command: Format, format disk

Added parameter: /FS:filessystem
Parameter explanation: Format the disk according to the specified file system type (FAT, FAT32, NTFS), for example "Format /FS:NTFS".

◆Commands: DATE, TIME, display system date and time

Added parameter: /T
Parameter explanation: Using this parameter, that is, "DATE/T" and "TIME/T", will only display the current date and time, without requiring input of a new date and time
http://dos.e-stone.cn/dosbbs
uploadImages/200311161145850422.swf
Floor 2 Posted 2002-12-04 00:00 ·  中国 广东 广州 海珠区 电信
初级用户
Credits 131
Posts 12
Joined 2002-12-04 00:00
23-year member
UID 403
Gender Male
Status Offline
Actually, these enhanced options were already in win2000
Floor 3 Posted 2004-06-23 00:00 ·  中国 天津 电信
中级用户
Credits 297
Posts 44
Joined 2004-06-15 00:00
22-year member
UID 26749
Gender Male
Status Offline
Floor 4 Posted 2004-06-23 00:00 ·  中国 湖南 株洲 电信
中级用户
★★
Credits 397
Posts 64
Joined 2004-04-18 00:00
22-year member
UID 22767
Gender Male
Status Offline
In XP, there is detailed help documentation about command line parameters:

Start → Help and Support → Pick a task / Use Tools to view your computer information and diagnose problems → Command-line reference A-Z
Floor 5 Posted 2004-08-03 00:00 ·  中国 河南 三门峡 陕州区 联通
初级用户
Credits 129
Posts 14
Joined 2004-08-01 00:00
21-year member
UID 29482
Gender Female
Status Offline
Nice
Floor 6 Posted 2004-08-05 00:00 ·  中国 广东 潮州 电信
初级用户
Credits 114
Posts 7
Joined 2004-08-05 00:00
21-year member
UID 29686
Gender Male
Status Offline
Support
Floor 7 Posted 2004-08-05 00:00 ·  中国 辽宁 抚顺 联通
银牌会员
★★★
Credits 1,186
Posts 510
Joined 2004-07-30 00:00
21-year member
UID 29279
Gender Male
Status Offline
Keep supporting it!
Forum Jump: