코드 사본은 다음과 같습니다.
Tempsource, Tempend는 절대 경로를 사용해야합니다
rootpath = request.servariables ( "appl_physical_path") '현재 프로그램의 절대 경로를 가져옵니다
FunctionCopyFiles (Tempsource, Tempend)
Dimfso
setfso = server.createobject ( "scripting.filesystemobject")
iffso.fileExists (Tempend)
response.write "대상 백업 파일 <b>"& tempend & "</b> 이미 존재합니다. 먼저 삭제하십시오!"
setfso = 아무것도
종료 기능
endif
그런 다음 iffso.fileExists (TempSource)
또 다른
response.write "소스 데이터베이스 파일을 복사 할 <b>"& tempsource & "</b>는 존재하지 않습니다!"
setfso = 아무것도
종료 기능
endif
fso.copyfiletempsource, Tempend
response.write "<b>"& tempsource & "</b> to <b>"& tempend & "</b>"을 성공적으로 복사했습니다.
setfso = 아무것도
최종 기능 장애