HTML files opening is not working

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: HTML files opening is not working

Post by *DrShark »

2User919
Maybe it will help if you'll post content of .reg files related to your Windows association of .html (use spoiler BBCode tag if it's large).
With Regedit, export following keys to .reg files:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTM_HTML]

[HKEY_CLASSES_ROOT\.htm]
[HKEY_CLASSES_ROOT\.html]

and also

[HKEY_CLASSES_ROOT\<x>]
where <x> is a value of default (in .reg file shown as @) parameter under [HKEY_CLASSES_ROOT\.htm] and [HKEY_CLASSES_ROOT\.html]

Also some questions:
* do you have same problem with opening the files with .htm as you have with files having .html extension?
* do you have this problem when trying to open such files from 32-bit and 64-bit TC launched as administrator (with elevated rights)?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: HTML files opening is not working

Post by *petermad »

do you have same problem with opening the files with .htm as you have with files having .html extension?
User919 already answered that:
petermad wrote:
Friday 10-01-2020, 01:30:50
Does it work from TC if you change the extension of the file to .htm ?
Yes, it does work.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
User919
Junior Member
Junior Member
Posts: 54
Joined: 2017-06-06, 19:14 UTC

Re: HTML files opening is not working

Post by *User919 »

Keys:
DrShark wrote: 2020-01-11, 09:53 UTC
[HKEY_CLASSES_ROOT\<x>]
where <x> is a value of default (in .reg file shown as @) parameter under [HKEY_CLASSES_ROOT\.htm] and [HKEY_CLASSES_ROOT\.html]
Registry does not contain such.
DrShark wrote: 2020-01-11, 09:53 UTC Also some questions:
* do you have same problem with opening the files with .htm as you have with files having .html extension?
* do you have this problem when trying to open such files from 32-bit and 64-bit TC launched as administrator (with elevated rights)?
  1. No
  2. I run usualy administrator elevated TC. The same applies to 32 bit version.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: HTML files opening is not working

Post by *DrShark »

User919 wrote: 2020-01-11, 17:56 UTC
DrShark wrote: 2020-01-11, 09:53 UTC[HKEY_CLASSES_ROOT\<x>]
where <x> is a value of default (in .reg file shown as @) parameter under [HKEY_CLASSES_ROOT\.htm] and [HKEY_CLASSES_ROOT\.html]
Registry does not contain such.
Your .reg file for HKCR\.htm from above link actually has it (@="IceDragonHTML, so the requested registry key is [HKEY_CLASSES_ROOT\IceDragonHTML]).

Anyway, now you can try to apply the same default app for .html files by importing following .reg file:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.html]
@="IceDragonHTML"
"Content Type"="text/html"
"PerceivedType"="text"
User919 wrote: 2020-01-11, 17:56 UTC
  1. I run usualy administrator elevated TC. The same applies to 32 bit version.
Well, some apps don't open files if started either with user rights or elevated, so it's worth trying it both ways.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: HTML files opening is not working

Post by *petermad »

Code: Select all

[HKEY_CLASSES_ROOT\.html]
@=""
No wonder, it dowsn't work when .html isn't associated with anything in the registry!

I just find it peculiar that all the different approaches I gave you to associate .html to a browser hasn't been able to that for you... :?:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
User919
Junior Member
Junior Member
Posts: 54
Joined: 2017-06-06, 19:14 UTC

Re: HTML files opening is not working

Post by *User919 »

DrShark wrote: 2020-01-11, 18:33 UTC
Anyway, now you can try to apply the same default app for .html files by importing following .reg file:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.html]
@="IceDragonHTML"
"Content Type"="text/html"
"PerceivedType"="text"
That did the job. I am sorry for misunderstanding about what should be searched under the keys.

Very well 👍 and thank you a lot.
Post Reply