为什么Application_OnEnd里的程序不执行
我将网站计数器的写入文件工作放在Application_OnEnd事件里,可是无论是停止服务器还是关机重起都没有执行此程序,我用的是WIN98+PWS。程序本身没有问题,计数文件用的是绝对路径,在别的任何地方都试过,是可以执行的,倒底什么时候触发Application_onEND事件?
程序如下:
Sub Application_OnEnd
vistxtpath=Application("vistxtpath")
Set fs=Server.CreateObject("SCRIPTING.FileSystemObject")
Set vistxt=fs.CreateTextFile(vistxtpath,True)
vistxt.WriteLine(Application("visnum"))
vistxt.Close
End Sub