% On Error Resume Next Set objFile = Server.CreateObject("Scripting.FileSystemObject") sPathCountFile = Server.MapPath("./count/count.dat") Set strmFile = objFile.OpenTextFile(sPathCountFile, 1, FALSE) If Err.Number > 0 Then iCount = 0 Else iCount = strmFile.ReadLine End If iCount = iCount + 1 strmFile.Close Set strmFile = objFile.OpenTextFile(sPathCountFile, 2, TRUE) strmFile.WriteLine iCount strmFile.Close sCount = right("00000" & CSTR(iCount),5) %>
![]() |
||||||||||||||
| |
|
|||||||||||||
|
||||||||||||||
|
||||||||||||||
|
| ||||||||||||||
Copyright (c) 2004 Yaoken, Inc. All Rights Reserved. |
||||||||||||||