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!)[FONT="]
[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="]]:[/FONT]
"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.