ASP MoveFile 메서드
정의와 사용법
MoveFile 메서드는 하나나 여러 개의 파일을 하나의 위치에서 다른 위치로 이동시킵니다.
문법:
FileSystemObject.MoveFile source,destination
파라미터 | 설명 |
---|---|
source | 필수입니다. 이동할 파일의 경로를 가리킵니다. 마지막 요소에 와일드카드를 포함할 수 있습니다. |
destination | 필수입니다. 파일을 이동할 목적지입니다. 와일드카드는 포함할 수 없습니다. |
예제
<% dim fs set fs=Server.CreateObject("Scripting.FileSystemObject") fs.MoveFile "c:\web\*.gif","c:\images\" set fs=nothing %>