Classic ASP
파일 복사
풍풍
2016. 11. 8. 10:57
old_path = "c:\test\test.asp"
new_path = "c:\new_test\" ' 끝에 \까지 넣어주면 권한 문제 발생소지가 줄어든다.
Set fso = CreateObject("Scripting.FileSystemObject")
fso.copyfile old_path, new_path, true ' true는 오버라이트, false는 대상폴더에 겹치는 파일이 있으면 중단됨
Set fso = nothing