ASP ShareNameProperty


Drive 对象参考手册Complete Drive Object Reference

The ShareName property returns the network share name of the specified drive.

Note:If the object is not a network drive, the ShareName property returns a zero-length string ("").

Syntax

DriveObject.ShareName

Example

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The sharename is: " & d.ShareName)
set d=nothing
set fs=nothing
%>


Drive 对象参考手册Complete Drive Object Reference Other Extensions