View Log with TYPE command

Asked

Viewed 50 times

2

I am using the type command to display a point log in the company, but it shows the contents of the entire log, only the last lines.

type C:\PASTA\LOG-TESTE.log 

@echo off
pause
  • The | MORE parameter in the type command does not work for me because the user would have to scroll down the page using the keyboard to the last line.

  • Displaying Log with Note Pad using the 'start' command would not do as the user would have to scroll down to the last line to view the latest ones.

Some solution?

1 answer

1


As to appear at the end of the file there is nothing to do, because the type list and add to buffer from the screen and to the end. If you want to see the whole file you have to scroll the bar until the beginning.

As for the file size, if this is too big the buffer will not support and will "cut" the content. In that case, you can change the buffer and the screen size to hold all the contents of the file using the command mode.

The command mode allows, among other things, to change the number of rows/columns, so it should solve your problem, for example by setting this before type:

mode con:cols=120 lines=5000

If the file is larger, you can increase the columns and rows until you meet your need

  • Okay, thanks for the help!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.