Metodo DriveExists di ASP
Definizione e utilizzo
Il metodo DriveExists restituisce un valore booleano che indica se il drive specificato esiste o meno. Se il drive esiste, viene restituito True, altrimenti False.
Sintassi:
FileSystemObject.DriveExists(unità)
parametro | descrizione |
---|---|
unità | obbligatorio. Lettera di unità o percorso completo specificato. |
istanza
<% dim fs set fs=Server.CreateObject("Scripting.FileSystemObject") if fs.DriveExists("c:")=true then response.write("Il drive c: esiste!") else response.write("Il drive c: non esiste.") end If set fs=nothing %>