Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Actually I was running a executing a tool from command line. For this I had executed some steps on command prompt.

But mistakenly machine was restarted and I lost all the steps that I performed on cmd.
There were at least 12-15 steps I executed before restarting the machine.

Is there a way so that I can retrieve the steps that I performed on command prompt?

share|improve this question

migrated from Jan 16 '13 at 19:57

This question came from our site for professional and enthusiast programmers.

history should do the trick. – cggaurav Jan 16 '13 at 14:08

press UP arrow of your keyboard to get the last command you executed (press up arrow 2 times to get command before last command etc;)

share|improve this answer
So you're saying command prompt history in Windows will work across a system reboot? – Karan Jan 17 '13 at 0:43

I assume you're using some version of Windows? AFAIK command prompt (DOSKey) history is not saved to disk and thus cannot be retrieved even if you close and reopen the window, much less reboot the PC.

share|improve this answer

LastActivityView from NirSoft might tell you what EXEs were run, and it might give you some other hints. It won't tell you what the command line parameters were though.

screenshot of LastActivityView

share|improve this answer
Doesn't even seem as if he's talking about command-line params though. By "12-15 steps" it seems he means that he executed those many separate commands in a command prompt window, and now hopes to retrieve them after a system restart. – Karan Jan 17 '13 at 2:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.