Metodo ASP GetDriveName


❮ Riferimento completo dell'oggetto FileSystemObject

Il metodo GetDriveName restituisce una stringa che contiene il nome dell'unità del percorso specificato.

Sintassi

FileSystemObject.GetDriveName(path)

Parameter Description
path Required. The path that will return a drive name

Esempio

<%
dim fs,dname
set fs=Server.CreateObject("Scripting.FileSystemObject")
dname=fs.GetDriveName("c:\test\test.htm")
Response.Write(dname)
set fs=nothing
%>

Output:

c:

❮ Riferimento completo dell'oggetto FileSystemObject