Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log to a file using command prompt 1

Status
Not open for further replies.

SurvivorTiger

Programmer
Jul 9, 2002
265
0
0
US
Hi everyone,

Let's say I type in certain commands in command prompt and after each command there will be a message that tells me whether the process was done successfully or not. Now at the very end, I want everything to be written into a log file so I can look at it later and see if everything ran smoothly or not. (or perhaps write everything to the text file as they're being shown on the screen)

I would appreciate it if someone could tell me how to accomplish this.

Thank you
 
you use > or >>. > overwrites, >> appends.

as in dir >> mydata.txt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top