달력

42024  이전 다음

  • 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

<!-- metadata type="typelib" file="c:\program files\common files\system\ado\msado15.dll"-->

<%

option explicit

dim rs, fso, file_path, objfolder, files, file,chk



set rs = server.createobject("adodb.recordset")


rs.cursorlocation = aduseclient


rs.fields.append "file_name", advarchar, 50


rs.cursortype = adopenstatic

rs.locktype = adlockbatchoptimistic

rs.open


set fso = createobject("scripting.filesystemobject")

file_path = server.mappath(".") & "\call"

set objfolder = fso.getfolder(file_path)

set files = objfolder.files


response.write "현재폴더" & objfolder&"<br>"

for each file in files

rs.addnew

rs("file_name") = file.name

'rs.update

next


rs.sort = "file_name asc"


do while not rs.eof

chk=rs("file_name")

response.write rs("file_name")&"<br>"


rs.movenext

loop


rs.close

set rs = Nothing

response.write chk

%>


'ASP' 카테고리의 다른 글

msxml3.dll 오류 '800c0005'  (0) 2012.07.17
asp xml 파싱  (0) 2012.07.09
asp에서 웹페이지 소스 가져오기, 파싱  (0) 2012.06.29
ASP UTF-8 파일 읽기,쓰기 및 실행 예제  (0) 2012.05.11
ASP 날짜 처리 함수  (0) 2012.05.10
Posted by dewlit
|