📜  ASP RootFolder 属性

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

ASP RootFolder 属性

ASP RootFolder 属性用于返回一个 Folder 对象,该对象指示指定驱动器的根文件夹。

句法:

DriveObject.RootFolder 

示例:下面的代码说明了 ASP Drive.RootFolder 属性。

ASP
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
  
'Getting the drive
set d=fs.GetDrive("d:")
  
'Getting the root folder of the drive
Response.Write("Root folder of the drive is: " & d.RootFolder)
  
set d=nothing
set fs=nothing
%>


输出:

Root folder of the drive is: D:\