这个我写在一个.vbs文件里了,定时去访问,但由于访问过多,所以我想每隔20秒访问一个,怕一起访问如果站点多了容易死,我这样写,好像不行,还是一起执行的感觉,应该怎么写呢?DIM IE  
SET IE = CreateObject("InternetExplorer.Application")  
IE.NAVIGATE("http://www.baidu.com") 
wscript.sleep(20000)IE.NAVIGATE("http://www.sina.com.cn") 
wscript.sleep(20000)IE.NAVIGATE("http://www.163.com ") 
wscript.sleep(20000)ie.visible=0  
SET IE = NOTHING

解决方案 »

  1.   

     createsleepfile(20000) '用这个延时试试
      

  2.   

    call createsleepfile(20000) '用这个延时试试 Sub CreateSleepFile(lngMS)
     Dim MyFSO, MyFile
     Set MyFSO = CreateObject ("s cripting.FileSystemObject")
     Set MyFile = MyFSO.CreateTextFile( "D:\MySleep.vbs", True )
     MyFile.WriteLine "Ws cript.Sleep " & CLng(lngMS)
     MyFile.Close
     End Sub