..
The method of the FileSystemObject object GetDriveName returns the drive name of the specified path. As the only required parameter is the path. Here's an example:
Dim fs, dname
'I create a FileSystemObject instance dell'offetto
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'The name of the drive recovery
fs.GetDriveName dname = ("c: \ www \ mysite \ index.html")
Response.Write (dname)
'I cleaned
Set fs = Nothing
The output will be generated:
c:
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €. |
| |
ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €. |