ASP DriveExists 메서드


❮ 완전한 FileSystemObject 개체 참조

DriveExists 메서드는 지정된 드라이브가 있는지 여부를 나타내는 부울 값을 반환합니다. 드라이브가 있으면 True, 없으면 False를 반환합니다.

통사론

FileSystemObject.DriveExists(drive)

Parameter Description
drive Required. A drive letter or a complete path specification

예시

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.DriveExists("c:")=true then
  response.write("Drive c: exists!")
else
  response.write("Drive c: does not exist.")
end If
set fs=nothing
%>

❮ 완전한 FileSystemObject 개체 참조