Edit command in Windows

The edit command starts MS-DOS Editor, creates and changes ASCII text files.

For an example of how to use this command, please see the example below.

Edit command syntax

 edit [/b] [/h] [/r] [/s] [/] [[:][] [ [.]] 

Parameters

ParametersDescription [:] [] [[.]] Specifies the location and name of one or more ASCII text files. If the file does not exist, MS-DOS Editor will create it. If the file exists, MS-DOS Editor will open it and display its contents on the screen. FileName may contain wildcards (* and?). Separate multiple file names with spaces. / b Forcing to use monochrome mode, makes MS-DOS Editor display only black and white. / h Displays the maximum number of lines possible for the current screen. / r Load file (s) in read-only mode (read only). / s Forced to use short file names. Load binary file (s), including lines to extend NNN characters. /? Show help at the command prompt.

Note

  1. For more help, open the MS-DOS Editor, and then press F1.
  2. Some screens do not support displaying shortcuts by default. If your screen does not display these shortcuts, use / b.

For example

To open the MS-DOS Editor, enter:

 edit 

To create and edit a file named newtextfile.txt in the current directory, enter:

 edit newtextfile.txt 

See more:

  1. Driverquery command in Windows
  2. The echo command in Windows
  3. The certutil command in Windows
4.3 ★ | 3 Vote

May be interested

  • The command reg add in WindowsThe command reg add in Windows
    the reg add command adds new subkeys or entries to the registry.
  • Rem command in WindowsRem command in Windows
    the rem command helps write comments (comments) in a batch file or config.sys.
  • Instructions for using Command PromptInstructions for using Command Prompt
    deep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
  • Rd command in WindowsRd command in Windows
    the rd command helps delete a directory
  • Cmd command in WindowsCmd command in Windows
    the cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
  • How to use the command history function in Command PromptHow to use the command history function in Command Prompt
    command prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
  • The sfc command in WindowsThe sfc command in Windows
    (applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
  • Reg command copy in WindowsReg command copy in Windows
    to copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
  • Fc command in WindowsFc command in Windows
    the fc command compares two files or a collection of files and displays the differences between them.
  • The echo command in WindowsThe echo command in Windows
    the echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.