Call an asp page without opening a web Browser.

M

Miguel

Hello,

I need to call an asp twice a day and I want to do it with an
scheduled task. The matter is that I want no Internet explorer window
to be opened. I do not need to see anything in the page. This ASP page
just executes an DB actualization, so it just have to be run.

Do you know how can I call the page without calling:

iexplore.exe http://www.mydomain.com/mypage.asp

because it opens a Web browser.

Thank you for your help.


Miguel Angel.
 
E

Evertjan.

Miguel wrote on 11 jul 2007 in microsoft.public.inetserver.asp.general:
I need to call an asp twice a day and I want to do it with an
scheduled task. The matter is that I want no Internet explorer window
to be opened. I do not need to see anything in the page. This ASP page
just executes an DB actualization, so it just have to be run.

Do you know how can I call the page without calling:

iexplore.exe http://www.mydomain.com/mypage.asp

because it opens a Web browser.

=========== TwiceADay.js ============

var http = new ActiveXObject("Msxml2.XMLHTTP");
http.open('GET','http://www.mydomain.com/mypage.asp',false);
http.send();
WScript.Echo('Done !'); // this line is not needed finally

======================================

and call it like this:

wscript TwiceADay.js

[not extensively tested]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top