Originariamente inviato da Gioba66
non è possibile...
posta tutto il codice che stai usando e che non funziona
allora:
questo mi funziona ma sovrascrive eventuali linee nel file .txt:
codice:
<%
dim fs, f
set fs = Server.CreateObject("Scripting.FileSystemObject")
set f = fs.CreateTextFile("c:\log.txt", true)
f.WriteLine("IP: " & request.ServerVariables("REMOTE_ADDR") & " | Data: " & Now())
f.Close
set f=nothing
set fs=nothing
%>
1) così come andrebbe modificato
2) l'istruzione che mi hai suggerito prima l'ho usata così
codice:
<%
Const ForAppending = 8
dim fs, f
set fs = Server.CreateObject("Scripting.FileSystemObject")
set f = fs.OpenTextFile("c:\log.txt", ForAppending)
f.WriteLine("IP: " & request.ServerVariables("REMOTE_ADDR") & " | Data: " & Now())
f.Close
set f=nothing
set fs=nothing
%>
usata così va bene, oppure come devo usarla?