Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Saving mht by default in IE9


16 Jul 2012   #1

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
.

16 Jul 2012   #2
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
16 Jul 2012   #3

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
.


17 Jul 2012   #4

Windows 7 x64 SP1
 
 

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 System SpecsSystem Spec
17 Jul 2012   #5

Windows 7 Ultimate x64
 
 
Hello pincushion

Just as you said, it's rarely proposed in .mht. There should be a solution ! Does anyone know personally Bill Gates?!
My System SpecsSystem Spec
17 Jul 2012   #6

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by sortserg View Post
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 System SpecsSystem Spec
17 Jul 2012   #7

Windows 7 Ultimate x64
 
 
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.


Attached Files
File Type: pdf Saving mht by default in IE9 - Windows 7 Forums.pdf (280.6 KB, 85 views)
My System SpecsSystem Spec
18 Jul 2012   #8

Windows 7 x64 SP1
 
 

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.

My System SpecsSystem Spec
18 Jul 2012   #9

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
18 Jul 2012   #10

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by sortserg View Post
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 System SpecsSystem Spec
Reply

 Saving mht by default in IE9




Thread Tools




Our Sites

Site Links

About Us

Find 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 08:45 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33