How to regularly browse (execute) ASP files

Source: Internet
Author: User
How to regularly run ASP files

Author: Xiao He time: 2003-6-8 document type: original from: Blue ideal

at a certain time, you must regularly run an ASP file to execute a task, for example, if a factory needs to collect readings from all electric meters at nine o'clock a.m., it needs to be connected to each electric meter through in SQL, now we use an ASP file to concentrate the reading of tables in SQL into ms SQL.

you may see a variety of methods to regularly run ASP files, but what I want to talk about is a simple method, you can simply implement it by using scheduled tasks.

first, you need to write a JS or vbs file to call all your executed ASP files. The following is the Code of the JS and vbs files, the execution results are the same.

vbs code copy box
'Code by Xiao He aston314@sohu.com 'create an instance of IE dim IE Set Ie = Createobject (" internetexplorer. application ") 'run your url IE. navigate ("http://www.blueidea.com/") IE. visible = 1 'clean up... set Ie = nothing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.