You are on page 1of 7

DOS EDITOR:About edit The MS-DOS Editor is a command line text editor that allows you to to view, create,

or modify any file on your computer. When running the edit command you will be shown a screen similar to the below picture.

Availability The edit command is an external command that is available in the below Microsoft operating systems. MS-DOS 5.x and above Windows 95 Windows 98 Windows ME Windows NT Windows 2000 Windows XP Windows Vista* Windows 7* * 64-bit versions of Windows do not support the edit command use notepad to edit files. Notepad can be started from the Windows command line by using the start command. Syntax EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [file(s)] /B /H /R /S /<nnn> Forces monochrome mode. Displays the maximum number of lines possible for your hardware. Load file(s) in read-only mode. Forces the use of short filenames. Load binary file(s), wrapping lines to <nnn> characters wide.

/? [file] Examples

Displays this help screen. Specifies initial files(s) to load. Wildcards and multiple file specs can be given.

edit c:\autoexec.bat This would look at the autoexec.bat. However, if the file is not found, you will have a blank blue screen. When editing this or any file, ensure that you know what you are placing in the files improperly editing the file can cause issues with your computer. If you are unable to get this program to work, try typing in "path c:\windows\command" if you have Windows 95or higher, or type in "path c:\dos" if you have Dos 5.x/6.x/7.x or Windows 3.x and try again. If you still are not able to get edit to work, it may not be on the hard drive; Type in dir edit.com /s at the c:\>. If it says that the file is not found, you may not have this feature. If you are running a MS-DOS version 4.x or lower or you are unable to find edit.com on your hard drive, you can also use the below command to create a file. copy con <name of file> Once you have entered the above command this will create the file with the name specified. Once you have typed all the lines you wish to be in the file, press and hold CTRL + Z. This should enter ^Z, once on the screen, press enter and one file should be copied. Using edit to create a file Using edit you can also create files; for example, if you wanted to create a file called myfile.txt, you would type the below command. edit myfile.txt This would bring up a blank edit screen, as long as the file is saved upon exit this will create the file myfile.txt. Additional information Note: Edit is only able to open a file with a maximum of 65,280 lines. If your mouse drivers are not loaded while in MS-DOS or the Windows command line you may have no mouse support. It is still possible to navigate the Editor using shortcut keys as seen in the below list. Quick Tip: Pressing Alt will allow you to quickly navigate through edit without having to memorize the below commands.

Home End Ctrl + Up Ctrl + Down PageUp PageDown Ctrl + PageUp Ctrl + PageDown Ctrl + Home Ctrl + End Ctrl + Left Ctrl + Right Enter Delete (Del) Backspace Tab Insert Ctrl + Y Ctrl + V Ctrl + P Shift

Move cursor to the beginning of the line currently on. Move cursor to the end of the line currently on. Scroll up one line. Scroll down one line. Scroll up one screen. Scroll down one screen. Scroll left one screen. Scroll right one screen.

Scroll to the top of the document. Scroll to the bottom of the document. Move left one word. Move right one word. Starts a new line or moves text after cursor down. Deletes one character that cursor is on or currently selected text. Deletes one character before the cursor. Moves cursor or text to next tab stop, or indents line if at first character. Switch between insert and overwrite modes. Deletes the current line. Pastes contents currently within buffer, if any. Allows special characters to be inserted into Edit. Using shift in combination with any of the above scrolling or moving commands will highlight text, such as Ctrl + Shift + Right. Copies currently selected text into buffer. Cuts the currently selected text into buffer. Un-indents the currently selected line.

Ctrl + C Ctrl + X Shift + Tab

Ctrl + Q + F Ctrl + Q + A F3 F6 Ctrl + F6 Ctrl + F4 Ctrl + F8 F1 About edit

Find text. Find and replace text. Repeat last search. Switch to the next edit window, if any. Open new edit window. Closes second edit window. Resizes edit window. Displays help.

The MS-DOS Editor is a command line text editor that allows you to view, create, or modify any file on your computer. When running the edit command you will be shown a screen similar to the below picture.

Availability The edit command is an external command that is available in the below Microsoft operating systems. MS-DOS 5.x and above Windows 95 Windows 98 Windows ME Windows NT Windows 2000 Windows XP Windows Vista* Windows 7* * 64-bit versions of Windows do not support the edit command use notepad to edit files. Notepad can be started from the Windows command line by using the start command.

Syntax EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [file(s)] /B /H /R /S /<nnn> /? [file] Examples edit c:\autoexec.bat This would look at the autoexec.bat. However, if the file is not found, you will have a blank blue screen. When editing this or any file, ensure that you know what you are placing in the files improperly editing the file can cause issues with your computer. If you are unable to get this program to work, try typing in "path c:\windows\command" if you have Windows 95or higher, or type in "path c:\dos" if you have Dos 5.x/6.x/7.x or Windows 3.x and try again. If you still are not able to get edit to work, it may not be on the hard drive; Type in dir edit.com /s at the c:\>. If it says that the file is not found, you may not have this feature. If you are running a MS-DOS version 4.x or lower or you are unable to find edit.com on your hard drive, you can also use the below command to create a file. copy con <name of file> Once you have entered the above command this will create the file with the name specified. Once you have typed all the lines you wish to be in the file, press and hold CTRL + Z. This should enter ^Z, once on the screen, press enter and one file should be copied. Using edit to create a file Using edit you can also create files; for example, if you wanted to create a file called myfile.txt, you would type the below command. Forces monochrome mode. Displays the maximum number of lines possible for your hardware. Load file(s) in read-only mode. Forces the use of short filenames. Load binary file(s), wrapping lines to <nnn> characters wide. Displays this help screen. Specifies initial files(s) to load. Wildcards and multiple file specs can be given.

edit myfile.txt This would bring up a blank edit screen, as long as the file is saved upon exit this will create the file myfile.txt. Additional information Note: Edit is only able to open a file with a maximum of 65,280 lines. If your mouse drivers are not loaded while in MS-DOS or the Windows command line you may have no mouse support. It is still possible to navigate the Editor using shortcut keys as seen in the below list. Quick Tip: Pressing Alt will allow you to quickly navigate through edit without having to memorize the below commands. Home End Ctrl + Up Ctrl + Down PageUp PageDown Ctrl + PageUp Ctrl + PageDown Ctrl + Home Ctrl + End Ctrl + Left Ctrl + Right Enter Delete (Del) Backspace Tab Insert Move cursor to the beginning of the line currently on. Move cursor to the end of the line currently on. Scroll up one line. Scroll down one line. Scroll up one screen. Scroll down one screen. Scroll left one screen. Scroll right one screen. Scroll to the top of the document. Scroll to the bottom of the document. Move left one word. Move right one word. Starts a new line or moves text after cursor down. Deletes one character that cursor is on or currently selected text. Deletes one character before the cursor. Moves cursor or text to next tab stop, or indents line if at first character. Switch between insert and overwrite modes.

Ctrl + Y Ctrl + V Ctrl + P Shift

Deletes the current line. Pastes contents currently within buffer, if any. Allows special characters to be inserted into Edit. Using shift in combination with any of the above scrolling or moving commands will highlight text, such as Ctrl + Shift + Right. Copies currently selected text into buffer. Cuts the currently selected text into buffer. Un-indents the currently selected line. Find text. Find and replace text. Repeat last search. Switch to the next edit window, if any. Open new edit window. Closes second edit window. Resizes edit window. Displays help.

Ctrl + C Ctrl + X Shift + Tab Ctrl + Q + F Ctrl + Q + A F3 F6 Ctrl + F6 Ctrl + F4 Ctrl + F8 F1