Solved Saving mht by default in IE9

sortserg

New member
Local time
6:59 PM
Messages
5
Location
Liege Belgium
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 My Computer

At a glance

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

mht.jpg

Hope this helps,
Shawn
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
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!

:mad: :zip: :mad: :zip: :mad: :huh: :cry:
 

My Computer My Computer

At a glance

Windows 7 x64 SP1Athlon II x2 2154.0 GBOnboard
Computer Manufacturer/Model Number
Compaq desktop
OS
Windows 7 x64 SP1
CPU
Athlon II x2 215
Memory
4.0 GB
Graphics Card(s)
Onboard
Sound Card
Creative SB X-Fi Titanium HD (nice)
Monitor(s) Displays
24" Dell LCD
Screen Resolution
1900 x 1200
Hard Drives
320 GB, 500 GB and 750 GB 7200 rpm
PSU
430w
Keyboard
USB
Mouse
USB
Internet Speed
approx 10 Mbps
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 My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64

My Computer My Computer

At a glance

Windows 7 Ultimate x64QuadCore Intel Core i7 920, 2666 MHz (20 x 133)6134 MB (DDR3-1333 DDR3 SDRAM)(2 - SLI) NVIDIA GeForce GTS 250 (1024 MB)
Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Ultimate x64
CPU
QuadCore Intel Core i7 920, 2666 MHz (20 x 133)
Motherboard
Asus P6T
Memory
6134 MB (DDR3-1333 DDR3 SDRAM)
Graphics Card(s)
(2 - SLI) NVIDIA GeForce GTS 250 (1024 MB)
Sound Card
Onboard Realtek ALC888/1200 @ Intel 82801JB IC
Monitor(s) Displays
HDMII
Screen Resolution
1280 x 800
Hard Drives
Crucial M4 (64 GB SSD)
WD Caviar Blacks
WD5001AALS-00J7B1 ATA Device (465 GB)
WD5001AALS-00J7B1 ATA Device (465 GB)
WD5001AALS-00L3B2 ATA Device (465 GB)
WD Elements USB External (250 GB)
PSU
Corsair 550
Case
iStarUSA S-10000BL Black
Thanks Victor! You are a real champion for finding solution! ;)

Hi Victor,
wink.gif


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!)[FONT=&quot] [see the original link you mention in your post: [/FONT]file, save as, mht - how to set mht as the default format - Microsoft Answers[FONT=&quot]]:[/FONT]

"Thank you very much indeed. This works & is the answer I've been searching for since March
banghead.gif
(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:

picnic.gif


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
orb.png
and the shortcuts of Internet Explorer, Windows Explorer, Firefox [if you use it], etc).
--

tipsmall.png
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)
thumbs.gif
.



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


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

Serge

P.-S. Here is this file in PDF format, for easier using.
 

Attachments

Last edited:

My Computer My Computer

At a glance

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

:party: :cool: :party: ;) :D
 
Last edited:

My Computer My Computer

At a glance

Windows 7 x64 SP1Athlon II x2 2154.0 GBOnboard
Computer Manufacturer/Model Number
Compaq desktop
OS
Windows 7 x64 SP1
CPU
Athlon II x2 215
Memory
4.0 GB
Graphics Card(s)
Onboard
Sound Card
Creative SB X-Fi Titanium HD (nice)
Monitor(s) Displays
24" Dell LCD
Screen Resolution
1900 x 1200
Hard Drives
320 GB, 500 GB and 750 GB 7200 rpm
PSU
430w
Keyboard
USB
Mouse
USB
Internet Speed
approx 10 Mbps
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 My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
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 My Computer

At a glance

Windows 7 Ultimate x64QuadCore Intel Core i7 920, 2666 MHz (20 x 133)6134 MB (DDR3-1333 DDR3 SDRAM)(2 - SLI) NVIDIA GeForce GTS 250 (1024 MB)
Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Ultimate x64
CPU
QuadCore Intel Core i7 920, 2666 MHz (20 x 133)
Motherboard
Asus P6T
Memory
6134 MB (DDR3-1333 DDR3 SDRAM)
Graphics Card(s)
(2 - SLI) NVIDIA GeForce GTS 250 (1024 MB)
Sound Card
Onboard Realtek ALC888/1200 @ Intel 82801JB IC
Monitor(s) Displays
HDMII
Screen Resolution
1280 x 800
Hard Drives
Crucial M4 (64 GB SSD)
WD Caviar Blacks
WD5001AALS-00J7B1 ATA Device (465 GB)
WD5001AALS-00J7B1 ATA Device (465 GB)
WD5001AALS-00L3B2 ATA Device (465 GB)
WD Elements USB External (250 GB)
PSU
Corsair 550
Case
iStarUSA S-10000BL Black
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."

;)

Apologies to Victor, who provided the solution, but Serge you initiated the thread and I might not have found the solution otherwise. ;)

I chose to include the vbs link in Favorites and it didn't seem to work from the Taskbar ??

I am sure this will make a lot of people happy so good work all round.

;) :rolleyes: ;) :D
 

My Computer My Computer

At a glance

Windows 7 x64 SP1Athlon II x2 2154.0 GBOnboard
Computer Manufacturer/Model Number
Compaq desktop
OS
Windows 7 x64 SP1
CPU
Athlon II x2 215
Memory
4.0 GB
Graphics Card(s)
Onboard
Sound Card
Creative SB X-Fi Titanium HD (nice)
Monitor(s) Displays
24" Dell LCD
Screen Resolution
1900 x 1200
Hard Drives
320 GB, 500 GB and 750 GB 7200 rpm
PSU
430w
Keyboard
USB
Mouse
USB
Internet Speed
approx 10 Mbps
I had to change the permissions to enable write access for users
permissions where?

If you right-click the SaveAsMHT.vbs file then properties and then security you will find the levels of access. I needed to change the access to enable write access for all users since this was not allowed initially. Perhaps it was just my system though.

;) :) :huh:
 

My Computer My Computer

At a glance

Windows 7 x64 SP1Athlon II x2 2154.0 GBOnboard
Computer Manufacturer/Model Number
Compaq desktop
OS
Windows 7 x64 SP1
CPU
Athlon II x2 215
Memory
4.0 GB
Graphics Card(s)
Onboard
Sound Card
Creative SB X-Fi Titanium HD (nice)
Monitor(s) Displays
24" Dell LCD
Screen Resolution
1900 x 1200
Hard Drives
320 GB, 500 GB and 750 GB 7200 rpm
PSU
430w
Keyboard
USB
Mouse
USB
Internet Speed
approx 10 Mbps
thanx. my system also. it works!
 

My Computer My Computer

At a glance

windows 7 pro 64bit
OS
windows 7 pro 64bit

My Computer My Computer

At a glance

Windows 7 x64 SP1Athlon II x2 2154.0 GBOnboard
Computer Manufacturer/Model Number
Compaq desktop
OS
Windows 7 x64 SP1
CPU
Athlon II x2 215
Memory
4.0 GB
Graphics Card(s)
Onboard
Sound Card
Creative SB X-Fi Titanium HD (nice)
Monitor(s) Displays
24" Dell LCD
Screen Resolution
1900 x 1200
Hard Drives
320 GB, 500 GB and 750 GB 7200 rpm
PSU
430w
Keyboard
USB
Mouse
USB
Internet Speed
approx 10 Mbps
now, even better: use fabulous free AutoHotkey_L for single key stroke to run the .vbs rather than from favorites. but you probably already know about that program?
 

My Computer My Computer

At a glance

windows 7 pro 64bit
OS
windows 7 pro 64bit
now, even better: use fabulous free AutoHotkey_L for single key stroke to run the .vbs rather than from favorites. but you probably already know about that program?

I've heard good things about AutoHotkey but I use HotKeyz to perform similar tasks - never thought about using a key-stroke though, ta
;) :)
 

My Computer My Computer

At a glance

Windows 7 x64 SP1Athlon II x2 2154.0 GBOnboard
Computer Manufacturer/Model Number
Compaq desktop
OS
Windows 7 x64 SP1
CPU
Athlon II x2 215
Memory
4.0 GB
Graphics Card(s)
Onboard
Sound Card
Creative SB X-Fi Titanium HD (nice)
Monitor(s) Displays
24" Dell LCD
Screen Resolution
1900 x 1200
Hard Drives
320 GB, 500 GB and 750 GB 7200 rpm
PSU
430w
Keyboard
USB
Mouse
USB
Internet Speed
approx 10 Mbps
Back
Top