"R.Wieser" <(E-Mail Removed)> wrote in
news:4d4bd16e$0$34849$(E-Mail Removed):
> Hello All,
>
> I've got a problem with XP's command-prompts (cmd.exe)
> commandline-history behaviour:
>
> Quite often when I press the "up" arrow (to go back to the
> previously typed commandline, or, on a next key press, to the one
> above it) I find myself ... somewhere in that list, but definitily
> *not* at the bottom of it.
>
> This is disconcerting, as it can land me on a command which
> nullifies all the work I've previously done on a file (by *again*
> copying an origional file to my working-folder, thereby erasing
> the work I just did on the copy).
The up-arrow will take you to the last command that you executed. If
the last command that you executed was generated by hitting the up-
arrow to go to a previous command and then you modify that command,
then the last command executed would be the last command in the
history list. OTOH, if you go to a command in history with the up-
arrow and execute it unaltered, then the last command you executed
was that line in history and subsequent up-down arrows will be
relative to that point.
> My question therefore is: can I tell the commandline-history to
> *allways* go to the bottom of its history-list (and not display
> any form of a to me counter-productive 'intelligence') ?
Sure, just press Page-Down before pressing the up-arrow.
> If that is not possible, how do I disable that commandline-history
> (without blocking other programs to take its place -- Can't seem
> to get an old version (W98se) of DosKey.com running ...).
You can change the length of the history buffer to "1".
For example:
C:\>doskey /reinstall /listsize=1
Keep in mind that after Windows 98 & ME, the command line window is
not really a DOS window but a program emulating it.
Some good reading that you might be interested in:
"The Windows NT Command Shell"
<
http://technet.microsoft.com/en-us/l.../cc723564.aspx >
HTH,
John