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 13:06
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Parameters of COMMAND.COM View 1,400 Replies 2
Original Poster Posted 2002-12-19 00:00 ·  中国 广东 惠州 电信
初级用户
Credits 243
Posts 39
Joined 2002-11-29 00:00
23-year member
UID 359
Gender Male
Status Offline
Ask the moderator, what are the parameters of COMMAND.COM? Could you please explain them in detail? There is such a sentence in a batch file: c:\command.com /c wt.exe, what does it mean?
谢谢各位的解答,使我学到很多东西,但愿有一天我能像各位版主一样为“人民服务”。
Floor 2 Posted 2002-12-19 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Here are several parameters of command.com, from Cai Xuan's "Unpublished DOS Parameters" article.

1. COMMAND /F (applicable to MS-DOS 6.00 and above)

COMMAND. COM /F can automatically help you choose one to answer when the system has an error prompt "Abort, Retry, Fail". For example, when using the DIR A: command without a floppy disk in the floppy drive, the system will automatically make several retries. If it still doesn't work, it will choose Fail and exit.

This parameter can run in the DOS window of Windows 95/98, and can also be used with the shell command in config. sys, such as: shell=c:\command.com c:\ /e:512 /p /f.

2. COMMAND /Z (applicable to MS-DOS 7.00 and above)

COMMAND. COM /Z displays the error level number (ERRORLEVEL) when the command execution is completed. Many BAT files perform operations such as selection through ERRORLEVEL. After this parameter is loaded, the error number of all executed commands is automatically displayed at the end. For example:

Microsoft(R) Windows 98(C)Copyright Microsoft Corp 1981-1998.Return code (ERRORLEVEL): 0WARNING: Reloaded COMMAND.COM transient

This parameter can run in the DOS window of Windows 95/98, and can also be used with the shell command in config. sys, such as: shell=c:\command.com c:\ /e:512 /p /z.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 3 Posted 2002-12-19 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
There are also undocumented parameters of COMMAND.COM, such as /T, /D, etc.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: