Método ASP DriveExists
❮ Referência Completa do Objeto FileSystemObject
O método DriveExists retorna um valor booleano que indica se existe uma unidade especificada. Retorna True se a unidade existir e False se não existir.
Sintaxe
FileSystemObject.DriveExists(drive)
Parameter | Description |
---|---|
drive | Required. A drive letter or a complete path specification |
Exemplo
<%
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
%>
❮ Referência Completa do Objeto FileSystemObject