jeremia
Goto Top

Webseite via Script speichern

Ich brauche ein VBS Script, dass ich alle 30min starten kann und mir die Webseite lokal speichert.
Ich habe einmal folgende Programmiert, doch beim speichern kommt es immer zum fehler:

set ieobj = createobject(\"internetexplorer.application\")
ieobj.visible=true
ieobj.navigate \"http://www.google.ch\"
IExplorerObj.Document.execCommand(\"saveas\", false, \"C:\\copy.htm\")

Content-Key: 121413

Url: https://administrator.de/contentid/121413

Printed on: April 25, 2024 at 01:04 o'clock

Member: bastla
bastla Jul 27, 2009 at 13:41:49 (UTC)
Goto Top
Hallo Jeremia!

Wenn's auch mit dieser Zeile
<code tpye="plain">ieobj.Document.execCommand "SaveAs", false, "C:\copy.htm"
nicht funktioniert, gäbe es zB noch folgende alternative Vorgangsweisen:
VBScript - Creating a Microsoft Web Archive (*.mht) File Programmatically
How to Use VBScript to Download a Web Page

Grüße
bastla