GetDriveName
Il metodo GetDriveName dell'oggetto FileSystemObject restituisce il nome del drive del path specificato. Quale unico parametro è richiesto il path. Vediamo un esempio:
Dim fs, dname
' Creo una istanza dell'offetto FileSystemObject
Set fs = Server.CreateObject("Scripting.FileSystemObject")
' recupero il nome del drive
dname = fs.GetDriveName("c:\www\miosito\index.html")
Response.Write(dname)
' Faccio pulizia
Set fs = Nothing
L'output generato sarà:
c:
');







