From http://www.w3schools.com (Copyright Refsnes Data)
Complete FileSystemObject Object Reference
The GetDriveName method returns a string that contains the drive name of the specified path.
| FileSystemObject.GetDriveName(path) |
| Parameter | Description |
|---|---|
| path | Required. The path that will return a drive name |
|
<% 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
From http://www.w3schools.com (Copyright Refsnes Data)