编辑edit

启动 MS-DOS 编辑器,该编辑器创建并更改 ASCII 文本文件。Starts the MS-DOS Editor, which creates and changes ASCII text files.

语法Syntax

edit [/b] [/h] [/r] [/s] [/<nnn>] [[<drive>:][<path>]<filename> [<filename2> [...]]

参数Parameters

参数Parameter 说明Description
[<drive>:][<path>]<filename> [<filename2> [...]] 指定一个或多个 ASCII 文本文件的位置和名称。Specifies the location and name of one or more ASCII text files. 如果文件不存在,MS-DOS 编辑器会创建它。If the file doens't exist, MS-DOS Editor creates it. 如果该文件存在,MS-DOS 编辑器会将其打开,并在屏幕上显示其内容。If the file exists, MS-DOS Editor opens it and displays its contents on the screen. Filename选项可以包含 (*) 的通配符字符。The filename option can contain wildcard characters (* and ?). 用空格分隔多个文件名。Separate multiple file names with spaces.
/b/b 强制单色模式,以便 MS-DOS 编辑器以黑白显示。Forces monochrome mode, so that MS-DOS Editor displays in black and white.
/h/h 显示当前监视器可能具有的最大行数。Displays the maximum number of lines possible for the current monitor.
/r/r 在只读模式下加载文件 () 。Loads file(s) in read-only mode.
/s/s 强制使用短文件名。Forces the use of short filenames.
<nnn> 将二进制文件 () 加载到 nnn 个字符范围内。Loads binary file(s), wrapping lines to nnn characters wide.
/?/? 在命令提示符下显示帮助。Displays help at the command prompt.

备注Remarks

  • 有关更多帮助,请打开 MS-DOS 编辑器,然后按 F1 键。For additional help, open MS-DOS Editor, and then press the F1 key.

  • 默认情况下,某些监视器不支持显示快捷键。Some monitors don't support the display of shortcut keys by default. 如果监视器未显示快捷键,请使用 /bIf your monitor doesn't display shortcut keys, use /b.

示例Examples

若要打开 MS-DOS 编辑器,请键入:To open MS-DOS Editor, type:

edit

若要在当前目录中创建和编辑名为 newtextfile.txt 的文件,请键入:To create and edit a file named newtextfile.txt in the current directory, type:

edit newtextfile.txt

其他参考Additional References