최신 웹 개발 튜토리얼
 

ASP방법 이동


<전체 폴더 객체 참조

이동 방법은 한 위치에서 다른 위치로 지정된 파일이나 폴더를 이동합니다.

통사론

FileObject.Move(destination)

FolderObject.Move(destination)

매개 변수 기술
destination 필요합니다. 어디에서 파일 또는 폴더를 이동합니다. 와일드 카드 문자는 허용되지 않습니다

파일 객체의 예

<%
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
%>

폴더 개체에 대한 예

<%
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
%>

<전체 폴더 객체 참조