Asked by:
How to save the contents running in a command prompt?

Question
-
How to save the contents running in a command prompt window to a text file?
To be in detail:
"Script" command in unix is use to save the contents to a text file,Is there any simillar command in windows to save the content?
Tuesday, September 11, 2007 3:42 PM
All replies
-
As per my knowledge you can save the contents in 2 ways...
1) Simply append the output of the command to a text file
eg. c:\> dir >> sample.txt
2) Open the cmd prompt in a window format, i.e. not full screen...
Now right click on the head of the cmd promt, i.e. the blue strip on the top and there is a option of edit
There select the option mark, i.e. edit-> mark
You will get a cursor in the cmd promt, just select the area that you want to copy... then again go to the top right click
edit-> copy
Now in a text file just paste and you will get the contents of the cmd prompt in the text file...Tuesday, September 11, 2007 4:17 PM -
Thanks Varun for your response.
But my problem is like, log message will be keep running in the command prompt window it will be very long in size, I cant copy .I want to save that in a text file.
Tuesday, September 11, 2007 5:15 PM -
Also I cant re-direct!Tuesday, September 11, 2007 5:16 PM
-
Hi All,
If this is not the right forum, please redirect me to the right place
Thanks in advance
Tuesday, September 11, 2007 6:20 PM -
HI Javeed
Just have a look at this website
http://www.devx.com/vb2themax/Article/19825/1954?pf=true
this might sort your problem.Tuesday, September 11, 2007 6:27 PM