달력

42025  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

ASP 로그남기기

Develope/ASP 2008. 6. 22. 20:53
반응형

 '로그 남기기기.....
 S_Date = GetCurtime24h() 'FormatDateTime(date,0)
 
 str = CTN & "|" & wflag & "|" & now
 
 'LogPath = Server.MapPath("D:\logTest")&"\"&S_Date&".txt"

 logName = replace(FormatDateTime(date,0),"-","")
 
 'S_Date = replace(S_Date,"-","")
 LogPath = "D:\sqldata\"&logName&"1111.log"
 
 Dim FileObject
 SET FileObject = Server.CreateObject("Scripting.FileSystemObject")
 Set Out= FileObject.OpenTextFile(LogPath, 8, TRUE)
 Out.WriteLine(str)
 Out.close
 SET Out = Nothing
 SET FileObject=Nothing

반응형
Posted by 친절한 웬디양~ㅎㅎ
|