Saved Bookmarks
| 1. |
Solve : saving comand prompt text to file? |
|
Answer» I have a batch file that TELLS me specific information about a program at a specific time. I was wondering if there is a way to save all the information shown in the comand prompt window to a text file using a command in that batch file.Quote from: brollins90 on December 11, 2007, 03:33:16 PM I have a batch file that tells me specific information about a program at a specific time. I was wondering if there is a way to save all the information shown in the comand prompt window to a text file using a command in that batch file. It depends. What's in your batch file? Redirection comes to mind. For example, if you have a batch file that causes some text to be printed to screen, you could redirect the output to a file instead. batch.bat on the command line executed writes to screen. batch.bat > filename.txt on the command line writes to filename.txt One redirection symbol will create the named text file if it does not exist, and if it exists it will overwrite it. Two redirection symbols will create the named text file if it does not exist, and if it does, it will append to it. As in batch.bat >> filename.txt brollins90 : I see that was your FIRST post here. Welcome to Computer HOPE. That works, thanks alot.Quote from: brollins90 on December 11, 2007, 05:05:53 PM That works, thanks alot. Good to know that did it. You're welcome, a lot. Stop in any time. |
|