cmd.exe remember commands after reboot ?!*

G

Guest

Dear ALL
I asked this question on friday.. but I'm sorry the answer was not helpful..
and it'll be forgotten....

I would like to know if the C:\WINDOWS\system32\cmd.exe can be configured so
that e.g. the last DOS commands, can be remembered between sessions, i.e
after a NT logoff or a PC re-boot.

I KNOW THE DOSKEY command !!!!!! but this is only useful inside a given
cmd.exe session.

Any ideas ?

regards,
Ben Bookey
 
E

Elmo

ben said:
Dear ALL
I asked this question on friday.. but I'm sorry the answer was not helpful..
and it'll be forgotten....

I would like to know if the C:\WINDOWS\system32\cmd.exe can be configured so
that e.g. the last DOS commands, can be remembered between sessions, i.e
after a NT logoff or a PC re-boot.

I KNOW THE DOSKEY command !!!!!! but this is only useful inside a given
cmd.exe session.

Any ideas ?

regards,
Ben Bookey

F3 would retype the last command, but it's doubtful it would be cached
between sessions.

Perhaps if you create a batch file with the preferred commands.
 
G

Guest

Hi Elmo,
thanks for the reply... yes I thought as much... in LINUX this seems to be
easier..
kind regards,
Ben
 
W

Wesley Vogel

I would like to know if the C:\WINDOWS\system32\cmd.exe can be configured
so that e.g. the last DOS commands, can be remembered between sessions,
i.e after a NT logoff or a PC re-boot.

No.

For Doskey HELP, paste the following line into Start | Run and click OK...

hh ntcmds.chm::/doskey.htm

Doskey has to be started FIRST in order to start adding commands to history
in order for them to be recalled.

You can, however, do this to save the commands between sessions...

/history
Displays all commands stored in memory. You can use a redirection symbol (>)
with /history to redirect the list to a file. You can abbreviate /history as
/h.

You can pipe the history to a text file on your desktop to save for later
reference.

doskey /h > "%userprofile%\desktop\history.txt"


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top