Click here to Skip to main content
15,867,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,


I want daily cron job on server through scheduling.......i m using that one vb script

VB
Call Schedule()

Sub Schedule()

On Error Resume Next

Dim objRequest
Dim URL

Set objRequest = CreateObject("Microsoft.XMLHTTP")


URL = "http://autofeeds.miltonandward.com/abc.aspx";


objRequest.open "POST", URL , false


objRequest.Send


Set objRequest = Nothing

End Sub


the problem is that script is not calling that one page <a href="http://autofeeds.miltonandward.com/abc.aspx">

plz  anyone help me????????????</a>
Posted

1 solution

Have you checked here?
http://www.4guysfromrolla.com/webtech/110100-1.shtml[^]

Good luck!
 
Share this answer
 
Comments
garimagupta66 4-Apr-13 7:30am    
this one is also not working.........
E.F. Nijboer 4-Apr-13 8:13am    
Have you checked the eventlog on the server? Microsoft.XMLHTTP is probably not available or not enough rights to use it. The eventlog should provide more info. Did you also try running directly?
garimagupta66 4-Apr-13 8:44am    
i m not aware about Microsoft.XMLHTTP plz suggest me what should i do.....
garimagupta66 4-Apr-13 9:05am    
and in scheduler i m using that one C:\Windows\system32\cscript.exe pathtofile.vbs

its not working mean that vb script is not able to call href="http://autofeeds.miltonandward.com/abc.aspx"> on server that y cron job is not working...
E.F. Nijboer 5-Apr-13 5:38am    
The problem is that I don't know if the scheduled task simply doesn't work (or gets activated) or that the script is incorrect. Did you specify pathtofile.vbs separately when configuring the task? This is a separate field you can enter. Also, you need to suround it with quotes if the path contains any spaces. Otherwise it is interpreted incorrectly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900