『第 2 楼』:
使用 LLM 解释/回答一下
这里粘了command.com的几个参数,来自蔡旋的“未公开的DOS参数”一文
1. COMMAND /F (MS-DOS 6.00 及以上适用)
COMMAND. COM /F 能够在系统出现错误的提示“Abort, Retry, Fail”时,自动帮助你选择其中一个来回答, 比如,在软驱没有软盘时使用DIR A: 命令,系统会自动进行几次重试,还是不行时则选择Fail 而退出。
该参数可以在Windows 95/98 的DOS窗口中运行, 也可以和config. sys中的shell命令一起使用,如:shell=c:\command.com c:\ /e:512 /p /f。
2. COMMAND /Z (MS-DOS 7.00 及以上适用)
COMMAND. COM /Z 在命令执行完毕时显示错误级别号(ERRORLEVEL),很多BAT 文件就是通过ERRORLEVEL 来进行选择等操作的, 这个参数加载以后,所有执行的命令结束都自动显示错误号是多少,如:
Microsoft(R) Windows 98(C)Copyright Microsoft Corp 1981-1998.Return code (ERRORLEVEL): 0WARNING: Reloaded COMMAND.COM transient
该参数可以在Windows 95/98的DOS窗口中运行,也可以和config.sys中的shell 命令一起使用,如:shell=c:\command.com c:\ /e:512 /p /z。
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.
|