log file opens automatically when it is focussed

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Tamil
Posts: 129
Joined: 10 Sep 2006 14:30
Location: .in
Contact:

log file opens automatically when it is focussed

Post by Tamil »

In preview mode, log file opens automatically when it is focused. Double click on it opens in associated editor.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: log file opens automatically when it is focussed

Post by admin »

log file? Give me more words, please.

Tamil
Posts: 129
Joined: 10 Sep 2006 14:30
Location: .in
Contact:

Re: log file opens automatically when it is focussed

Post by Tamil »

admin wrote:log file? Give me more words, please.
File with log extension.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

Not sute if this is the case here, but if IE is configured to have *.log files to be automatically opened with notepad (for example) instead of viewed within IE, clicking on a LOG file while having the Preview Tab on would automatically have the file opened in the notepad, as its the expected behavior (since XY "opens"/preview the file through IE).

Note that, how you configure this IE behavior, just like whether or not it should pop up the Open/Download window when clicking on files it kind of a mystery to me; I'm just glad it always pops up that window and never tried anything that could risk me to loose/change this behavior :oops:
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

jacky wrote:Note that, how you configure this IE behavior, just like whether or not it should pop up the Open/Download window when clicking on files it kind of a mystery to me...
To me, too! Still waiting for enlightment...

RalphM
Posts: 2092
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Post by RalphM »

Just FYI those files open in Notepad on my sys as well.
I'm pretty sure this didn't happen a while ago with previous betas. Just not sure how far back this was.
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Post by lukescammell »

Same here...
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

RalphM wrote:Just FYI those files open in Notepad on my sys as well.
I'm pretty sure this didn't happen a while ago with previous betas. Just not sure how far back this was.
For some reason your browser is configured to download or open-with-associated this file type, and confirmation is turned off. The latter you can adjust in the file types (extension LOG) config that you find in Explorer/Tools/Folder Options (or similar -- I only have the German version here). The former I think has to do with MIME-types, but the details are a mystery to me.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

(A) Okay, I found the way. Note: I do not say it's good, but it works. You care for yourself.

Open Registry.
Goto HKEY_CLASSES_ROOT\.log
Add a new key of type string, and call it "Content Type".
Set it to this value: text/plain

By this you tell your browser that it shall treat LOG files as simple text files and open them (instead of downloading them).

(B) Since XY is portable and the above is changing the local registry, I will remove LOG files from previewed formats! So the above is just for your entertainment and enlightment! :wink:

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

admin wrote:(B) Since XY is portable and the above is changing the local registry, I will remove LOG files from previewed formats! So the above is just for your entertainment and enlightment! :wink:
hmm.. not sure I get your logic here. I mean ok XY is portable, but why remove LOG files from previewed formats? Or, why LOG only and not TXT files aswell?? One could have its IE configured to open with automatically with notepad instead of within IE aswell, no?
Besides, if you go there.. why not remove ALL that goes through IE, as it will alway depend on the PC XY is running on for all those formats (HTM, DOC, PDF, XLS, etc) ??

Besides, one can just uncheck *.log on the Config window (as I did for example ;)) so they get previewed as Raw View in XY. You want it to go through IE you can, you don't you can aswell, isn't everyone happy that way? Why change it? :roll:
Proud XYplorer Fanatic

Tamil
Posts: 129
Joined: 10 Sep 2006 14:30
Location: .in
Contact:

Post by Tamil »

admin wrote:I will remove LOG files from previewed formats!
Uncheck it instead of removing.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

jacky wrote:
admin wrote:(B) Since XY is portable and the above is changing the local registry, I will remove LOG files from previewed formats! So the above is just for your entertainment and enlightment! :wink:
hmm.. not sure I get your logic here. I mean ok XY is portable, but why remove LOG files from previewed formats? Or, why LOG only and not TXT files aswell?? One could have its IE configured to open with automatically with notepad instead of within IE aswell, no?
Besides, if you go there.. why not remove ALL that goes through IE, as it will alway depend on the PC XY is running on for all those formats (HTM, DOC, PDF, XLS, etc) ??

Besides, one can just uncheck *.log on the Config window (as I did for example ;)) so they get previewed as Raw View in XY. You want it to go through IE you can, you don't you can aswell, isn't everyone happy that way? Why change it? :roll:
The point is: the other file types you mention usually have the "Content Type" key set in the registry. LOG files apparently not! Prove me wrong. :P

I'm not even sure if *.log is a definite file format, or rather a semantic suffix telling that this file does log something in whatever format (maybe even binary). So it might be even dangerous to open them in IE.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

I just searched for all the .LOG files on my W2K sys...found about 300...did a quick raw view of them...almost all showed as Ascii-DOS, with a few as Unicode-DOS, Ascii-Mac/DOS or empty or in-use, but there were about a half-dozen that were definitely binary! So I think that .LOG is whatever the application wants to format it as, with most being a text style but not required to be...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

j_c_hallgren wrote:I just searched for all the .LOG files on my W2K sys...found about 300...did a quick raw view of them...almost all showed as Ascii-DOS, with a few as Unicode-DOS, Ascii-Mac/DOS or empty or in-use, but there were about a half-dozen that were definitely binary! So I think that .LOG is whatever the application wants to format it as, with most being a text style but not required to be...
Thank you, that's exactly what I gathered.

Post Reply