search cancel

Read the content of a webpage with a windows agent

book

Article ID: 89464

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Read the content of a webpage with a windows agent

Environment

Release: AOATAM99000-9.0-Automic-One Automation Tools-Application Manager
Component:

Resolution


Solution

If you want to read a webpage with a windows agent and interpret the content of this site you could automate this with Automic and a vbs script. The script is called web.vbs.
This is the content of web.vbs:
 
Dim oXMLHTTP
Dim oStream
Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0")
oXMLHTTP.Open "GET", WScript.Arguments.Item(0), False
oXMLHTTP.Send
If oXMLHTTP.Status = 200 Then
wscript.echo oXMLHTTP.responseText
End If
 
Now create an Automic job and type the following line into the process tab:
cscript c:\web.vbs http://website.com
 
 

?