|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.vbs file schedule in remote server...
Hi
viewer's i am little bit confused... i created one .vbs file in my webapplication and schedule into task every day automatically update all news from different databse.. to my database,.,,. in locally it's working perfectly but when i am trying same thing into remote server that time it's not working... my .vbs code is.... set ie = WScript.CreateObject("InternetExplorer.Application") ie.Navigate("http://www.xyz.com/xyz/xyz.aspx") ie.visible = false this is my .vbs file what could be the wrong with this coding i am not able to understand so please anyone know plz. help me i am very thankful to you thanks in advance... regards mdateeq2003 |
|
#2
|
||||
|
||||
|
probably permissions problem.
contact your host and ask them if you can do such thing, most probably the answer would be "No" because of security risks. |
|
#3
|
|||
|
|||
|
.vbs file
Quote:
thanks for reply.. there is an option for creating schedule task in my server control panel, they are also providing some help which file is to be used for example .vbs .exe .bat files... but my problem is in vbs script only if we can define directly user name and password. I think that time it will work. so please help me in this createria. .vbs file with permission or defining user name and password.... thanks regards mdateeq2003 |
|
#4
|
||||
|
||||
|
this question is related to vbs only, it got nothing to do with .NET
actually.. moved to the Windows Scripting forum. as for your problem: don't use "InternetExplorer.Application" component. instead, use Microsoft.XMLHTTP component. if you're not familiar with the XMLHTTP let us know and we'll try to guide you further. |
|
#5
|
|||
|
|||
|
thanks
Quote:
i am not familiar with XMLHTTP Plz. let me know some details about XMLHTTP and adv. of XMLHTTP thanks & regards mdateeq2003 |
|
#6
|
||||
|
||||
|
instead of those lines:
Code:
set ie = WScript.CreateObject("InternetExplorer.Application")
ie.Navigate("http://www.xyz.com/xyz/xyz.aspx")
have this: Code:
Set objXML = CreateObject("Microsoft.XMLHTTP")
objXML.Open "GET", "http://www.xyz.com/xyz/xyz.aspx", False
objXML.Send
this way it's also possible to read the result of the call, if you want let us know. |
|
#7
|
||||
|
||||
|
Check out my article "Handling Live Web Content in WSH". I'm quite literally writing the follow-up article as I'm posting this.
Part 1 documents most of the XMLHTTP methods you need. Part 2 is going into detail on the remaining ones for use with form submission, secure protocols, etc.
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
|
#8
|
||||
|
||||
|
cool article, you can also combine this with such code:
http://forums.aspfree.com/code-bank...-asp-55211.html to parse the HTML results in better way and extract specific data from the page. |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > .vbs file schedule in remote server... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|