<Complete FileSystemObject Object Reference
Il metodo GetDriveName restituisce una stringa che contiene il nome del drive del percorso specificato.
Sintassi
FileSystemObject.GetDriveName(path)
Parametro | Descrizione |
---|---|
path | Necessario. Il percorso che restituirà un nome di unità |
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:
<Complete FileSystemObject Object Reference