Using the command prompt as text editor

Run the this command at the dos prompt:

COPY CON NEW.BAT

Now you are copying the input from the keyboard and into the batch file NEW.BAT. It is not possible to modify previous lines, the only option is to start all over. To finish the editing press CTRL+Z.