©
This document uses PHP Chinese website manual Release
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
%>