ASP ShareName 属性
ASP ShareName 属性用于返回指定驱动器的网络共享名称。
句法:
DriveObject.ShareName
示例:下面的代码演示了 ASP Drive.ShareName 属性。
ASP
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
'Getting the required drive
set d=fs.GetDrive("d:")
'Getting the share name of the drive
Response.Write("The share name of drive: " & d.ShareName)
set d=nothing
set fs=nothing
%>
输出
The share name of drive: GeeksForGeeks