Metodo ASP DriveExists


❮ Riferimento completo dell'oggetto FileSystemObject

Il metodo DriveExists restituisce un valore booleano che indica se esiste un'unità specificata. Restituisce True se l'unità esiste e False in caso contrario.

Sintassi

FileSystemObject.DriveExists(drive)

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

Esempio

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

❮ Riferimento completo dell'oggetto FileSystemObject