Home

mht and mhtl files

%3CLINGO-SUB%20id%3D%22lingo-sub-705578%22%20slang%3D%22en-US%22%3Emht%20and%20mhtl%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-705578%22%20slang%3D%22en-US%22%3E%3CP%3EInitially%20Edge%20Canary%20and%20Edge%20Dev%20could%20read%20mht%20and%20mhtl%20files%20but%20this%20seems%20to%20have%20been%20taken%20away.%20I%20need%20this%20and%20lack%20of%20it%20in%20Edge%20was%20the%20reason%20I%20did%20not%20use%20it%20and%20used%20IE%20and%20Chrome%20instead.%20I%20understand%20that%20this%20file%20formaat%20was%20created%20by%20Microsoft%20so%20it%20is%20strange%20that%20they%20are%20not%20sopporting%20it%20while%20Chrome%20does.%20If%20not%20added%20back%20I%20will%20be%20abandoning%20Edge%20Canary%20and%20Edge%20Dev%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-708438%22%20slang%3D%22en-US%22%3ERe%3A%20mht%20and%20mhtl%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-708438%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317910%22%20target%3D%22_blank%22%3E%40Old_Man88%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EInitially%20Edge%20Canary%20and%20Edge%20Dev%20could%20read%20mht%20and%20mhtl%20files%20but%20this%20seems%20to%20have%20been%20taken%20away.%26nbsp%3B%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3EI%20have%20no%20problems%20either%20opening%20.mht%20and%20.mhtml%20files%20with%20EC%20(Ctrl-O)%20or%20double-clicking%20on%20a%20file%20in%20Explorer.%20Check%20your%20file%20associations%3A%20open%20an%20administrator%20command%20window%20and%20type%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Eftype%20mhtmlfile%3C%2FPRE%3E%0A%3CP%3EThis%20is%20what%20mine%20shows%20(on%2032-bit%20Canary)%3A%3C%2FP%3E%0A%3CPRE%3EC%3A%5CUsers%5CJohnny%26gt%3Bftype%20mhtmlfile%0Amhtmlfile%3D%22C%3A%5CUsers%5CJohnny%5CAppData%5CLocal%5CMicrosoft%5CEdge%20SxS%5CApplication%5Cmsedge.exe%22%20%22%251%22%3C%2FPRE%3E%0A%3CP%3EIf%20you%20something%20other%20than%20%3CSTRONG%3Emsedge.exe%3C%2FSTRONG%3E%20at%20the%20business%20end%20of%20that%20path%2C%20you%20need%20to%20fix%20the%20association.%20To%20do%20that%2C%20you'll%20have%20to%20find%20the%20program%20executable.%20I%20don't%20know%20of%20an%20easy%20way%20to%20do%20that%2C%20but%20this%20is%20what%20comes%20to%20mind%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EPress%20Windows%20key%20and%20locate%20the%20program%20in%20the%20list.%20Right-click%20on%20it%20and%20select%20%3CEM%3EMore%3C%2FEM%3E%20%26gt%3B%20%3CEM%3EOpen%20file%20location%3C%2FEM%3E.%20This%20will%20just%20open%20the%20folder%20where%20the%20shortcut%20is%20located.%3C%2FLI%3E%0A%3CLI%3ERight-click%20on%20the%20entry%20in%20the%20Start%20menu%20%7C%20Programs%20folder%20and%20select%20%3CEM%3EProperties%3C%2FEM%3E.%3C%2FLI%3E%0A%3CLI%3EPress%20Ctrl-C%20to%20copy%20the%20contents%20of%20the%20%3CEM%3ETarget%3C%2FEM%3E%20box.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EBack%20to%20your%20administrator%20command%20window%20and%20enter%20the%20following%3A%3C%2FP%3E%0A%3CPRE%3Eftype%20mhtmlfile%3D%3C%2FPRE%3E%0A%3CP%3Ethen%20right-click%20at%20the%20end%20of%20what%20you%20typed%20and%20select%20%3CEM%3EPaste%3C%2FEM%3E.%20This%20should%20paste%20what%20you%20copied%20at%20(3)%20above.%20Then%20type%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%22%251%22%3C%2FPRE%3E%0A%3CP%3Eso%20that%20the%20whole%20line%20looks%20something%20like%20this%3A%3C%2FP%3E%0A%3CPRE%3Eftype%20mhtmlfile%3D%22C%3A%5CUsers%5CJohnny%5CAppData%5CLocal%5CMicrosoft%5CEdge%20SxS%5CApplication%5Cmsedge.exe%22%20%22%251%22%3C%2FPRE%3E%0A%3CP%3EThe%20bit%20inside%20quotes%20will%20of%20course%20be%20different%20for%20you.%20Unless%20you%20see%20an%20error%20message%2C%20you%20should%20now%20be%20good%20to%20go%20with%20.mht%20and%20.mhtml%20files.%20If%20you%20do%20see%20an%20error%20message.%20come%20back%20here%20and%20quote%20it%20in%20full.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-706054%22%20slang%3D%22en-US%22%3ERE%3A%20mht%20and%20mhtl%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-706054%22%20slang%3D%22en-US%22%3E%3CP%3ETry%20%3CA%20href%3D%22https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fsave-as-mht%2Fhfmodljjaibbdndlikgagimhhodmobkc%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESave%20As%20MHT%3C%2FA%3E%20extension.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-709534%22%20slang%3D%22en-US%22%3ERe%3A%20mht%20and%20mhtl%20files%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-709534%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9548%22%20target%3D%22_blank%22%3E%40Noel%20Burgess%3C%2FA%3E%26nbsp%3B%20Thanks%20very%20much.%20The%20path%20to%20msedge.exe%20on%20mt%20Win10%2064%20bit%20computer%20is%20slightly%20different%3A%26nbsp%3BC%3A%5CUsers%5Ckenpk%5CAppData%5CLocal%5CMicrosoft%5CEdge%20SxS%5CApplication%5Cmsedge.exe%20but%20I%20fo%3B%3Bowed%20your%20procedure%20and%20now%20the%20files%20open%20in%20Adge%20Canart%20as%20desired.%20Again%2C%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
Old_Man88
New Contributor

Initially Edge Canary and Edge Dev could read mht and mhtl files but this seems to have been taken away. I need this and lack of it in Edge was the reason I did not use it and used IE and Chrome instead. I understand that this file formaat was created by Microsoft so it is strange that they are not sopporting it while Chrome does. If not added back I will be abandoning Edge Canary and Edge Dev,

3 Replies

Try Save As MHT extension.

 


@Old_Man88 wrote:

Initially Edge Canary and Edge Dev could read mht and mhtl files but this seems to have been taken away. 


I have no problems either opening .mht and .mhtml files with EC (Ctrl-O) or double-clicking on a file in Explorer. Check your file associations: open an administrator command window and type 

ftype mhtmlfile

This is what mine shows (on 32-bit Canary):

C:\Users\Johnny>ftype mhtmlfile
mhtmlfile="C:\Users\Johnny\AppData\Local\Microsoft\Edge SxS\Application\msedge.exe" "%1"

If you something other than msedge.exe at the business end of that path, you need to fix the association. To do that, you'll have to find the program executable. I don't know of an easy way to do that, but this is what comes to mind:

  1. Press Windows key and locate the program in the list. Right-click on it and select More > Open file location. This will just open the folder where the shortcut is located.
  2. Right-click on the entry in the Start menu | Programs folder and select Properties.
  3. Press Ctrl-C to copy the contents of the Target box.

Back to your administrator command window and enter the following:

ftype mhtmlfile=

then right-click at the end of what you typed and select Paste. This should paste what you copied at (3) above. Then type 

"%1"

so that the whole line looks something like this:

ftype mhtmlfile="C:\Users\Johnny\AppData\Local\Microsoft\Edge SxS\Application\msedge.exe" "%1"

The bit inside quotes will of course be different for you. Unless you see an error message, you should now be good to go with .mht and .mhtml files. If you do see an error message. come back here and quote it in full.

@Noel Burgess  Thanks very much. The path to msedge.exe on mt Win10 64 bit computer is slightly different: C:\Users\kenpk\AppData\Local\Microsoft\Edge SxS\Application\msedge.exe but I fo;;owed your procedure and now the files open in Adge Canart as desired. Again, thanks

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
48 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies