How do I log a CMD shell session to a file ?

  • Thread starter Thread starter Al Dykes
  • Start date Start date
A

Al Dykes

I want to start a cms shell session and type a few commands and
save all the input and output in a file.

The command buffer is too limited.

Any suggestions ?
 
Click the c: prompt icon in the top left corner. Go to the edit menu and use
"Mark" and "Copy"


Jon
 
Try TechNet @ microsoft,sub-menu,script center.They're the experts for
scripts.
 
I want to record more than cmd can buffer. It looks a 999 line limit.

The limit seems to be 9999 lines. The size of the console screen buffer
can be set from the console's system icon ... Properties ... Layout.

I wrote a little utility to save the console screen buffer to a file
(syntax: savecsb filename). It can be found at
ftp://barnyard.syr.edu/pub/vefatica/savecsb.exe.
 
Al said:
I want to start a cms shell session and type a few commands and
save all the input and output in a file.

The command buffer is too limited.

Any suggestions ?
Hi

Maybe not exactly what you want, but, in the command prompt:

dir c:\ >c:\cmdlog.txt
set >>c:\cmdlog.txt

will redirect in overwrite mode

so the first line in the example above will clear out any
existing c:\cmdlog.txt file before the result of dir c:\ is
saved. The second line will append to the log file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top