ShareName
ASP ShareName 属性
ShareName 属性返回指定驱动器的网络共享名称。
注意:如果对象不是一个网络驱动器,则 ShareName 属性返回零长度字符串 ("")。
语法
DriveObject.ShareName
实例
<%
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
%>
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
%>