ASP GetDriveName Method
Definition and Usage
The GetDriveName method returns a string, which is the name of the drive at the specified path.
Syntax:
FileSystemObject.GetDriveName(path)
parameter | description |
---|---|
path | required. It can return the path of the drive name. |
instance
<% dim fs,dname set fs=Server.CreateObject("Scripting.FileSystemObject") dname=fs.GetDriveName("c:\test\test.htm") Response.Write(dname) set fs=nothing %>
Έξοδος:
c: