i think you can do it in linux as something like "history >filename.txt" but how do you do it in windows, i'm a geneticist and i want a record of exactly what programs i've run for my lab book.

i'm using windows 7 64 bit if it makes an dif

link|improve this question

36% accept rate
feedback

2 Answers

up vote 5 down vote accepted

You can use the doskey command to do this:

doskey /HISTORY > history.txt
link|improve this answer
doskey is not a command, it is external utility. – Andrejs Cainikovs Sep 29 '10 at 12:29
1  
@Andrejs, actually its built into cmd.exe. See the Wikipedia article: In current Windows NT-based operating systems DOSKey's functionality is built into cmd.exe, although the DOSKey command is still used to change its operation. – heavyd Sep 29 '10 at 12:32
seems i need to include the doskey bit? – Kirstin Sep 29 '10 at 12:37
also, is there a way i can get it to include information printed to the screen as well? – Kirstin Sep 29 '10 at 12:37
To see it on the screen, use just doskey /history – heavyd Sep 29 '10 at 12:43
show 5 more comments
feedback

Use Power Shell. It has get-history command.

link|improve this answer
Consider leaving a comment if you are down-voting the answers. I don't find my answer as wrong.. It is just one option out of many, the same as most answers on StackExchange sites. – Andrejs Cainikovs Oct 4 '10 at 9:26
feedback

Your Answer

 
or
required, but never shown

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