How to run an ASP file
Author: Xiao Time: 2003-6-8 Document Type: Original from: Blue ideal
At a certain time, I want to run a ASP file to execute a task, such as a factory to collect all the meter readings at 9 o'clock in the morning, and of course it is to connect to each electric meter through in SQL. We now use A ASP file focuses the readings of the IN SQL to MS SQL. There are many ways to run the ASP file in the timing you see, but I am now talking about a simple way, using a planned task to make a simple implementation. First, you have to write a JS or VBS file to call all your executed ASP. Below is the code of the JS and VBS files, you can choose one, the execution effect is the same. VBS code copy box 'Code by Xiaohim 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