< Complete Drive Object Reference
The VolumeName property sets or returns the volume name of a specified drive.
Syntax
DriveObject.VolumeName[=newname]
Parameter | Description |
---|---|
newname | Optional. Sets the new name of the specified drive |
Example
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The volume name is: " & d.VolumeName)
set d=nothing
set fs=nothing
%>
< Complete Drive Object Reference