Saturday, October 13

Editing text

EDIT
The EDIT command is used to compile. edit, save, copy and print straight forward and simple text.
Points to remember
  • EDIT is a full screen text editor with menu, mouse support, cut and paste options.
  • It is especially useful for creating AUTOEXEC.BAT and CONFIG.SYS files.
Syntax
EDIT
EDIT [drive:] [Path] file name
Where,
EDIT : editing text
[drive:] : drive where file to be edited is present.
[Path] : location of file in the specified directory.
file name : name of the file to be edited.
The EDIT command is used in some what different way than the command that you have already used.
Examples
Starting up the editor
The editor can be started from the command line the EDIT command as shown in 
example 1
C:\>.EDIT  (press enter key)
- if you press Enter key, you are provided a short introduction of editor.
- if you press Esc, you can clear the window.

Working with the editor
The menu bar : The menu on the menu bar can be opened uisng the mouse or key combination.
- you can select the required option by Alt key.
- then move the cursor to the Right or left to select the required menu and press enter to select.
- for quick selection you can press Alt key and then accentuate (underlined) letter of the menu bar.
- type the text (few lines)

Saving text
The command Save from the File menu enables you to save a text you have typed.
Hence,
- Press Alt+F
- Choose file
- Type the file name (e.g. editing)
- Press Enter

Opening the text file
- Press Alt+F.
- Select open option.
- Type the file name (e.g. editing).
- Press Enter key

Closing the editor :
The editor can be closed using the File menu.
- Press Alt+F
- Select Exit (by pressing X or by clicking on it with the mouse)
Editing a particular file
C:\>EDIT CONFIG.SYS  ( press enter key )
It is used to edit the CONFIG.SYS file in root directory of hard disk, after making changes to the file you can save it again.
C:\>EDIT A:\CONFIG.SYS  (press enter key)
The text editor will let you edit or modify the file CONFIG.SYS of A: drive from C: drive.

   

No comments:

Post a Comment