<%
Sub NumberAppend()
Set files=Server.CreateObject("Scripting.FileSystemObject")
Set numtxt=files.OpenTextFile(Server.MapPath("Number_sdfz.txt"))
Application("Number")=numtxt.ReadLine
numtxt.Close
Application("Number")=Application("Number")+1
Set numtxt=files.CreateTextFile(Server.MapPath("Number_sdfz.txt"),True)
numtxt.WriteLine(Application("Number"))
numtxt.Close
End Sub
Application.Lock
NumberAppend
Application.UnLock
Function GCounter(counter )
Dim S, i, G
S = CStr( counter )
For i = 1 to Len(S)
G = G & ""
Next
GCounter = G
End Function
%>
<%=Gcounter(application("number"))%>
|
|