📜  ASP ShareName 属性

📅  最后修改于: 2022-05-13 01:56:43.755000             🧑  作者: Mango

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