Saving mht by default in IE9

Page 1 of 2 12 LastLast

  1. Posts : 5
    Windows 7 Ultimate x64
       #1

    Saving mht by default in IE9


    Hi,

    New to sevenforums, I'd like to shortly present myself. I specially have interest in computer. But many questions remain unsolved... That's why I register.

    That said, I'd like to know if it's possible to force IE9 to save in .mht format. I found no valid information on the Net. Do you have any idea? Does anyone of you found a solution? Thanks in advance to share info.

    Have a good day,
    Serge
    Windows 7 Ultimate x64
      My Computer


  2. Posts : 72,050
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Serge, and welcome to Seven Forums.

    When you click on File (menu bar) and Save as in IE9, you will be able to select to save it as a .mht file like below. :)

    Saving mht by default in IE9-mht.jpg

    Hope this helps,
    Shawn
      My Computer


  3. Posts : 5
    Windows 7 Ultimate x64
    Thread Starter
       #3

    Yes, Brink, I kown, but...


    Hello Brink,

    Indeed, Internet Explorer saves files in html format by default. And I never use it because it creates a separate folder with files in it and one more separate file.

    I find this very messy and unorganized - I far prefer saving all info into one file. Furthermore, it's more logical: when you save to PDF, for example, or to Word documents: do you have more than one file?


    So, when I want to save file in .htm as I always do, I have to manually change each time the mht extension. Mht extension is NOT SELECTED BY DEFAULT.

    Is there something to change in the Registry?

    I leave this up to you, hoping that someone is bored, just like me, by clicking more than once to get the desired extension: mht.

    Thanks in advance and have a good day,

    Serge
      My Computer


  4. Posts : 472
    Windows 7 x64 SP1
       #4

    This is something I have not been able to find a solution to either and like sortserg I always save in mht format so find it a real pain having to change the format on most occasions. Sometimes the mht is already there selected but mostly it isn't. Such a simple thing but it seems too hard for MS to accommodate!

      My Computer


  5. Posts : 5
    Windows 7 Ultimate x64
    Thread Starter
       #5

    Hello pincushion


    Just as you said, it's rarely proposed in .mht. There should be a solution ! Does anyone know personally Bill Gates?!
      My Computer


  6. Posts : 325
    Windows 7 Ultimate x64
       #6

    sortserg said:
    Just as you said, it's rarely proposed in .mht. There should be a solution ! Does anyone know personally Bill Gates?!
    Check this:
    file, save as, mht - how to set mht as the default format - Microsoft Answers

    I don't care about this functionality myself, but I just love solutions!
    You may or may not like this one. I didn't test it.
      My Computer


  7. Posts : 5
    Windows 7 Ultimate x64
    Thread Starter
       #7

    Thanks Victor! You are a real champion for finding solution! ;)


    Hi Victor,

    At least, you give us the solution of a simple question never solved:
    how to save in .mht format by default in Internet Explorer 9!

    As Try*3 said to
    ウィンドウズスクリプトプログラマ in the mentioned forum you give me the link (and the valuable solution!) [see the original link you mention in your post: file, save as, mht - how to set mht as the default format - Microsoft Answers]:

    "Thank you very much indeed. This works & is the answer I've been searching for since March (posted on July 16, 2012). When I click on the item, it opens the Save as... dialog with the file type already set to mht."

    So, to resume all in one post, here is how to set the saving in .htm by default:



    1. Open Notepad.


    2. Copy the following text in the new window that opens:


    Set ies=CreateObject("Shell.Application").Windows()
    For Each ie In ies
    If ie.ReadyState=4 Then If TypeName(ie.Document)="HTMLDocument" Then If ie.Document.hasFocus() Then Exit For
    Next
    If IsEmpty(ie) Then
    For Each ie In ies
    If ie.ReadyState<>4 Then
    ElseIf TypeName(ie.Document)="HTMLDocument" Then
    ie.Document.focus
    If ie.Document.hasFocus() Then Exit For
    End If
    Next
    End If
    If IsEmpty(ie) Then
    MsgBox "Not Found"
    WScript.Quit
    End If
    href=ie.locationURL
    Set a=ie.Document.createElement("a")
    a.href=href
    a.hash="##"
    ie.Document.parentWindow.setTimeout "location.replace """ & a.href & """",0,"vbscript"
    Do While ie.Document.parentWindow.location.hash<>"##"
    WScript.Sleep 100
    Loop
    ie.ExecWB 4,1
    ie.Document.parentWindow.location.replace href



    3. ORIGINAL TEXT

    --
    Save this script on your desktop as "SaveAsMHT.vbs" (without quotes).

    Drag this file (SaveAsMHT.vbs) to the middle of the menu bar (at the bottom of the screen, after the Start button and the shortcuts of Internet Explorer, Windows Explorer, Firefox [if you use it], etc).
    --

    To simplify, I didn't save the file to the desktop as suggested by the author, but I directly saved it to C:\Users\username\Favorites. One operation instead of two.

    4. In Internet Explorer Favorites, click on "SaveAsMHT.vbs"instead of clicking on "save as".

    5. A new windows pops up, waiting you to enter a file name (see just below the file name: you now see that Internet Explorer will save with the .htm archive extension) .



    Thanks to ウィンドウズスクリプトプログラマ for finding the solution, and to Victor for the link!

    Thanks again to all of you, and have a good day!

    Serge

    P.-S. Here is this file in PDF format, for easier using.
    Saving mht by default in IE9 Attached Files
    Last edited by sortserg; 17 Jul 2012 at 14:46. Reason: Added this topic in PDF format
      My Computer


  8. Posts : 472
    Windows 7 x64 SP1
       #8

    Nice one chaps! I had to change the permissions to enable write access for users before it would work but it does now -yippee! Thanks Serge for getting at the solution.

    Last edited by pincushion; 18 Jul 2012 at 02:00. Reason: add
      My Computer


  9. Posts : 5
    Windows 7 Ultimate x64
    Thread Starter
       #9

    I just summerized ;)


    Hi pincushion!

    Code:
    "Thanks Serge for getting at the solution."
    Well, I didn't... Victor did! I just summarized the info (and test it)

    As we say in French: "Il faut rendre à César ce qui appartient à César" (the citation is indeed from the Bible's New Testament (Matthew 22:21). "Give to Caesar the things which are Caesar's, and to God the things which are God's."

      My Computer


  10. Posts : 325
    Windows 7 Ultimate x64
       #10

    sortserg said:
    Hi pincushion!

    Code:
    "Thanks Serge for getting at the solution."
    Well, I didn't... Victor did! I just summarized the info (and test it)

    As we say in French: "Il faut rendre à César ce qui appartient à César" (the citation is indeed from the Bible's New Testament (Matthew 22:21). "Give to Caesar the things which are Caesar's, and to God the things which are God's."

    Nice job of that you did too.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:48.
Find Us