Método ASP DriveExists
❮ Referencia completa del objeto FileSystemObject
El método DriveExists devuelve un valor booleano que indica si existe una unidad específica. Devuelve True si la unidad existe y False si no.
Sintaxis
FileSystemObject.DriveExists(drive)
Parameter | Description |
---|---|
drive | Required. A drive letter or a complete path specification |
Ejemplo
<%
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
%>
❮ Referencia completa del objeto FileSystemObject