Question Locked

Are DOS commands saved to a file?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know if the commands I enter in the command prompt window (i.e. ipconfig /all) are saved to a file on my XP machine? I would like to track the items I entered. Thanks.

5 replies

by apotheon

He's asking for the command session history in a file -- not the output of the command saved to a file. At least, that's how I understood it.

by thechas

XP does not automatically track the commands entered in a DOS command prompt window.

XP does keep a rolling list of items entered in the Run Box from the start menu. However, this data is stored in a registry key.

Chas

by robo_dev

or I suppose you could write a batch file to do it.

the 'old school' way to create this is:

Goto cmd prompt and type:

copy con test.bat
call ipconfig /all >out.txt
hit return and then CTRL-Z, and it should say "one file copied" do a dir and you should see your new batch file called test.bat

To append to a file instead of overwriting it, use >> instead of >

then just add an icon to your batch file.

This discussion is closed to new replies.