달력

52024  이전 다음

  • 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
  • 31

<%
Dim Fso, strDir

strDir = "C:\Myweb\mFax_china\updateinfo"

Set Fso = Server.CreateObject("Scripting.FileSystemObject") '파일객체 생성

If Not Fso.FolderExists(strDir) Then '"C:Temp폴더가 존재하지 않으면
strDir = Fso.CreateFolder(strDir) '"C:Temp폴더를 생성

End If

Set Fso = nothing


Set oFSO = Server.CreateObject("Scripting.FileSystemObject")
sfile_Name = "save.txt"
filePath = Server.MapPath("./upda.")
sfile_Name = filePath & "\" & sfile_Name

Set oFile = oFSO.OpenTextFile(sfile_Name, 2, True, 0)
 

   'Do Loop 레코드

     oFile.Write "zz"        ' save 텍스트에 zz라는 문자열 쓰기

   'Loop

oFile.Close

Set oFile = Nothing
Set oFSO = Nothing


%>

'ASP' 카테고리의 다른 글

ASP 종료 함수  (0) 2012.04.05
ASP 문자열 함수  (0) 2012.04.02
ASP 함수  (0) 2012.03.29
ASP 인코딩  (0) 2012.03.29
asp에서 NULL 체크하기  (0) 2012.03.29
Posted by dewlit
|