ASP 이동 방법


❮ 완전한 파일 객체 참조

Move 메서드는 지정된 파일이나 폴더를 한 위치에서 다른 위치로 이동합니다.

통사론

FileObject.Move(destination)

FolderObject.Move(destination)

Parameter Description
destination Required. Where to move the file or folder. Wildcard characters are not allowed

File 객체의 예

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.GetFile("c:\test.txt")
f.Move("c:\test\test.txt")
set f=nothing
set fs=nothing
%>

Folder 객체의 예

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
fo.Move("c:\asp\test")
set fo=nothing
set fs=nothing
%>

❮ 완전한 파일 객체 참조