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-27 14:05
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » DOS commands View 1,565 Replies 10
Original Poster Posted 2003-06-08 00:00 ·  中国 福建 厦门 鹏博士宽带
初级用户
Credits 175
Posts 15
Joined 2003-06-07 00:00
23-year member
UID 4287
Gender Male
From 福建
Status Offline
Where can I download a complete DOS command reference???
我是一个好人!!!
Floor 2 Posted 2003-06-12 00:00 ·  中国 安徽 芜湖 电信
初级用户
Credits 148
Posts 16
Joined 2003-06-12 00:00
23-year member
UID 4922
Gender Male
Status Offline
Chaoxing
Floor 3 Posted 2003-06-17 00:00 ·  中国 浙江 舟山 电信
初级用户
Credits 105
Posts 1
Joined 2003-06-17 00:00
23-year member
UID 5390
Gender Male
Status Offline
To the poster above, DOS has so many commands, which one are you talking about??? Ha
Floor 4 Posted 2003-12-22 00:00 ·  中国 山西 朔州 怀仁市 联通
初级用户
Credits 121
Posts 4
Joined 2003-10-25 00:00
22-year member
UID 11891
Gender Male
Status Offline
The following are some commonly used ones, please add more, everyone. DOS common commands:
cd - change current directory
 sys - make a DOS system disk
copy - copy files del - delete files
deltree - delete a directory tree
dir - list filenames
diskcopy - make disks
edit - text editing
format - format disk
 md - create subdirectory
mem - view memory status 
type - display file contents
rd - delete directory
ren - change filename
cls - clear screen
move - move files,
 more - paged display

xcopy - copy directories and files
help - help
attrib - set file attributes
date - display and modify date
lable - set volume label number
defrag - disk defragmentation
doskey - call and create DOS macro commands
fdisk - hard disk partitioning
emm386 - extended memory management
lh/loadhigh - load a program into upper memory
memmaker - memory optimization management
msd - system detection
undelete - recover deleted files
prompt - set prompt
restore - restore backed-up files
time - display and modify time
set - set environment variables
smartdrv - set disk accelerator
append - set the path for non-executable files
debug - program debugging command
diskcomp - compare disks
expand - extraction tool
fasthelp - quickly display help information
fc - file comparison
interlnk - start the simple network client
intersvr - start the simple network server
qbasic - start the Basic integrated environment
setver - set version
share - file sharing
subst - path substitution
tree - display tree structure
unformat - recover a formatted disk
vsafe - virus protection program
ver - display DOS version
vol - display the specified disk volume label number
ctty - change control device

Commands to use with caution:    
del *.* - delete all files in the current directory
deltree *.* - delete all directories and files under the current directory
format c:/u - format drive C fdisk - hard disk partitioning recover - overwrite disk

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Undocumented MS-DOS commands and parameters

Up to MS-DOS version 6.22, many undocumented commands and parameters are still kept. Below is an introduction to these commands and parameters.

1.TRUENAME
When using the SUBST or JOIN command, or when mapping a physical drive to a logical drive on a network, it is used to display the actual physical location of files and directories.

2.FDISK/MBR
Rewrite the hard disk master boot record. Note: if the hard disk has more than four partitions, this command cannot be used, because the area storing extra partition information will be overwritten by FDISK/MBR. (Beginners absolutely must not use it)

3.SHELL=C:\COMMAND.COM/P/F
After adding the /F parameter, when the “Abort,Retry,Fail” error message appears, Fail will be taken as the default option.

4.COMMAND/F
When executed at the command line, it makes Fail the default option for the “Abort,Retry,Ignore,Fail” error prompt until reboot. After executing this command in other dedicated DOS shells (such as NDOS, 4DOS, etc.) or the DOS shells of application programs (such as PCTOOLS, CCED, etc.), it will return to and stay in the MS-DOS shell; you must execute EXIT to return to the second shell.

5.COMMAND/P
When executed at the command line, it reruns AUTOEXEC.BAT. If this command is executed in another DOS shell, it will return to the MS-DOS shell and cannot return to the second shell again.

6.COMMAND/D
When executed at the command line, it prevents automatic batch files from running. When run in another DOS shell, the situation is the same as COMMAND/F, but Fail is not set as the default option.

7.VER/R
Displays more information. For example, executing VER displays “MS-DOS Version 6.22”; after adding the parameter /R, it displays: MS-DOS Version 6.22 Revision A DOS is in HMA

8.FORMAT/AUTOTEST
Automatically checks the disk format, then completes the whole formatting process, and returns to the DOS prompt.

9.FORMAT/BACKUP
Except for prompting the user to enter the volume label, it is the same as above.

10.FORMAT/SELECT
Only backs up the system area data on the disk, equivalent to executing the MIRROR program, without formatting.

11.FORMAT/SELECT/U
Does not format, only fills the boot sector and file allocation table with F6H. Although it does not touch the root directory area and data area, the disk becomes inaccessible because of this. This seems to provide an emergency means of preventing data leakage. (Beginners absolutely must not use it)

12.IF EXIST EMMXXXXO
This command name can be used in batch files to detect whether EMM386.EXE is in memory. Example command line: “if not exist EMMXX XXO echo EMM386.EXE is not installed!”.

13.IF EXIST XMMXXXXO
This command name can be used in batch files to detect whether HIMEM.SYS is loaded in memory. The command line can be: “if not exist XMMXXX XO echo HIMEM.SYS is not in memory!”.

14.COPY . A:
Use “.” in place of “*.*”; it can also be used with commands such as DEL.

15.INSTALLHIGH
Some device drivers need to be installed in CONFIG.SYS with the INSTALL statement, and can only be loaded into conventional memory, and MEMMAKER does not process INSTALL statements when optimizing memory. You can instead use INSTALLHIGH to load such device driver programs into upper memory, for example: INSTALLHIGH=C:\DOS\SHARE.EXE.

16.Use “:” in place of “REM”
When DOS executes a batch file and encounters a “REM” statement, it first reads in the whole line, then decides how to handle it based on whether the line starts with REM; but when it encounters a label beginning with “:”, as long as the second character is not a letter or number, it is treated as an invalid label and it immediately jumps to the next line. Therefore, “:” plus a space can be used to lead comment lines, in order to increase batch file execution speed.
Floor 5 Posted 2003-12-24 00:00 ·  中国 湖南 长沙 电信
初级用户
Credits 166
Posts 17
Joined 2003-12-04 00:00
22-year member
UID 13759
Gender Male
Status Offline
That really opens the door to convenience, thanks.
Floor 6 Posted 2003-12-30 00:00 ·  中国 安徽 黄山 电信
初级用户
Credits 115
Posts 6
Joined 2003-12-30 00:00
22-year member
UID 14657
Gender Male
Status Offline
Thanks
Floor 7 Posted 2004-02-19 00:00 ·  中国 重庆 万州区 电信
初级用户
Credits 107
Posts 1
Joined 2004-02-19 00:00
22-year member
UID 17844
Gender Male
Status Offline
Could an expert tell me how to install Windows XP or 2000 under D0S?
How do I find the original program; I'm a newbie
Floor 8 Posted 2004-03-19 00:00 ·  中国 辽宁 沈阳 中移铁通
中级用户
Credits 268
Posts 40
Joined 2004-03-06 00:00
22-year member
UID 19388
Gender Male
Status Offline
Pretty good copy-and-paste work
Floor 9 Posted 2004-03-20 00:00 ·  中国 河北 保定 阜平县 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Isn't there a DOS command reference website released by Wengier in the tutorials section of this forum? I've looked at it, and it really is very complete, and it has detailed usage for everything. The only bad thing is that it's in English.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 10 Posted 2004-03-20 00:00 ·  中国 黑龙江 牡丹江 中移铁通
高级用户
★★
Credits 919
Posts 198
Joined 2004-01-17 00:00
22-year member
UID 15706
Gender Male
Status Offline
There are too many dos commands, there's no way to explain them one by one.
It's enough if you understand some internal commands. For the others, just use /? to solve it.
Floor 11 Posted 2004-03-21 00:00 ·  中国 福建 泉州 电信
初级用户
Credits 123
Posts 6
Joined 2004-03-21 00:00
22-year member
UID 20688
Gender Male
Status Offline
Where's the moderator
Forum Jump: