ASP DeleteFolder 메서드
❮ 완전한 FileSystemObject 개체 참조
DeleteFolder 메서드는 하나 이상의 지정된 폴더를 삭제합니다.
참고: 존재하지 않는 폴더를 삭제하려고 하면 오류가 발생합니다.
통사론
FileSystemObject.DeleteFolder(foldername[,force])
Parameter | Description |
---|---|
foldername | Required. The name of the folder or folders to delete (Wildcards are allowed) |
force | Optional. A Boolean value that indicates whether read-only folders will be deleted. True indicates that read-only folders will be deleted, False indicates that they will not be deleted. Default is False |
예시
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FolderExists("c:\temp") then
fs.DeleteFolder("c:\temp")
end if
set fs=nothing
%>
❮ 완전한 FileSystemObject 개체 참조