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\")
ieobj.visible=true
ieobj.navigate \"http://www.google.ch\"
IExplorerObj.Document.execCommand(\"saveas\", false, \"C:\\copy.htm\")
Please also mark the comments that contributed to the solution of the article
Content-Key: 121413
Url: https://administrator.de/contentid/121413
Printed on: April 25, 2024 at 01:04 o'clock
1 Comment
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
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