| 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 |