Preview of .log files

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
irinaonline
Posts: 7
Joined: Fri Jan 26, 2018 8:38 pm

Preview of .log files

Post by irinaonline »

I wonder, where I need to configure or change the settings to preview .log files the same way like .txt, .bat, and so on?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Preview of .log files

Post by NotNull »

Everything uses the preview functionality of Windows. Windows has no specific too aboard to handle this.
There are third party toools that can, but I can't think of thei names.

This is what I wrote and use:
Drag a (any) .log file to TextPreview.cmd, press any key and you are done.

TextPreview.cmd

Code: Select all

@echo off
if "%~x1" == "" (
	echo. Wrong file!
	pause
goto :EOF
)
echo Install "%~x1" text preview handler. CTRL-C to exit 
pause
reg.exe add "HKCU\Software\Classes\%~x1" /v "PerceivedType" /D "text" /f
pause
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Preview of .log files

Post by tuska »

NotNull wrote:There are third party tools that can, but I can't think of their names.
https://www.winhelponline.com/blog/prev ... ows-vista/
Everything_View-Preview_register file types for the Preview Pane.png
Everything_View-Preview_register file types for the Preview Pane.png (115.37 KiB) Viewed 5466 times
Thanks to ovg ;)
viewtopic.php?f=5&t=7350

Regards,
Karl
froggie
Posts: 301
Joined: Wed Jun 12, 2013 10:43 pm

Re: Preview of .log files

Post by froggie »

Another way:

Right click on any .log file. Click on properties.

On the line "Open With" in the General tab, click the "Change" button.

If you are then given a choice of recommended programs, select "Notepad" OR
Click "browse" and go to "C:\Windows" then double click on "notepad.exe"
Click OK

Now "Notepad" will be the default open application for .log files. This method can be used for any extension and any application that can process that extension.
irinaonline
Posts: 7
Joined: Fri Jan 26, 2018 8:38 pm

Re: Preview of .log files

Post by irinaonline »

Thanks, the PreviewConfig does exactly, what's needed. Intuitive, easy. Thank you!
Post Reply