This topic is locked
[SOLVED]

 getmail.php

4/26/2017 4:53:19 AM
PHPRunner General questions
S
swanside author

Hi all.

I am trying to get the email reader to run. I am running it on a windows server so I an setting up a scheduled task for it, but I am struggling with how to do it.
I have this code which is in a vbs file on the desktop. If I run it manually it works great, but how can I run it as a scheduled task?

Cheers

Set oX = CreateObject("Microsoft.XmlHTTP")

oX.Open "GET", "http://192.168.0.2/email/getmail.php";, False

oX.Send ""

WScript.Echo oX.responseText
S
swanside author 4/26/2017

Sorted. I ran a cron on a different server



Hi all.

I am trying to get the email reader to run. I am running it on a windows server so I an setting up a scheduled task for it, but I am struggling with how to do it.
I have this code which is in a vbs file on the desktop. If I run it manually it works great, but how can I run it as a scheduled task?

Cheers

Set oX = CreateObject("Microsoft.XmlHTTP")

oX.Open "GET", "http://192.168.0.2/email/getmail.php";, False

oX.Send ""

WScript.Echo oX.responseText