Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Editing previous dos command  (Read 8627 times)

0 Members and 1 Guest are viewing this topic.

David Holmes

  • Guest
Editing previous dos command
« on: June 24, 2004, 04:12:41 AM »
Windows XP. When at a dos prompt, I can use the F1 key to bring back the previous command one character at a time or use the F3 key to bring back the whole of the last command. What I cannot do is edit the command by inserting characters ie if I use F1 to get characters to where I want to insert a character, type in my new character, then press F1 again, I find I have overwritten a character rather than inserted a character.  Could you please explain how I can insert instead of overwriting.

A

  • Guest
Re: Editing previous dos command
« Reply #1 on: June 24, 2004, 01:46:35 PM »
That usually doesn't work in a DOS prompt, but try typing "doskey" press enter. THis will allow you to bring back hte previous command by pressing the up arrow, and the next command by pressing the down arrow, once you get to the command, try inserting characters as you would in a word proccesor.

chade

  • Guest
Re: Editing previous dos command
« Reply #2 on: June 26, 2004, 09:32:01 AM »
I believe doskey is loaded by default when using MS-DOS under windows XP.

MalikTous

  • Guest
Re: Editing previous dos command
« Reply #3 on: June 26, 2004, 11:10:01 AM »
When you use F1 to get to the place you wish to insert the character(s), press INSERT before you type in the additional characters. Then press F3 to append the remainder of the previous command buffer.

David Holmes

  • Guest
Re: Editing previous dos command
« Reply #4 on: June 30, 2004, 02:26:05 AM »
I had tried pressing the INSERT key but it still did an overwrite of the characters rather than an insert. The only thing that seems to work is to bring up the whole command then edit that.