Link Search Menu Expand Document

Windows Command Line Editor

You can utilize command-line editing when you log in to the shell with login or localhost. You can obtain commands from your history file, alter them, and then run their outcome using command-line editing. After reading about many of the r command characteristics, you’ve previously encountered in this process.

Make Changes to the Syntax

[/B] EDIT [/H] [/R] [/S] [/] [/?] [FileName...]


Examples for Editing

c:autoexec.bat should be edited.

If it exists, open the file c:autoexec.bat to be changed. A blank blue screen appears if the file does not exist. (The edit command is no longer available in newer versions of Windows that run on 64-bit processors.) See also: How to open, view, and edit a file’s contents on a computer.)


Using "copy con" as a Tool

If you’re using MS-DOS version 4.x or lower, or isn’t on your hard drive, you can create a file with the following command.

con FileName copy

When you run the command before, it creates a file with the specified names.

Press and hold Ctrl+Z once you’ve typed all of the lines your want to have in the file. When the letter “Z” appears on the screen, press it.


To Make a New File, Use Edit

You can also create a new file with the edit. For instance, if you wanted to make a file called myfile.txt, you’d execute the command below.

make changes to myfile.txt


This command will open a blank edit window. After you type your message and save the file, myfile.txt is created with your text.

supplementary information


Edit can only open files that have a maximum of 65,280 lines.


The editor is occasionally used as a replacement for Notepad, which can only handle small files. The editor can handle files with up to 65,279 lines and file sizes of up to 5MB. Depending on how much conventional memory is available, MS-DOS versions are limited to around 300KB.

On Windows, you can start the editor by typing Edit into the Run command dialogue, and on the command-line interface, you may create it by typing edit (usually cmd.exe). Later, windows operating systems, such as Windows XP, Vista, and Windows 7, 32-bit, still have Edit.

The goal of command modification was to save time by not having to type the same thing repeatedly for long orders that take a lot of typing. When you make a mistake in inputting a command line and want to fix it, command editing comes in handy.

Other useful articles:

Back to top

© , CMD Windows — All Rights Reserved - Terms of Use - Privacy Policy