ASP IsRootFolder 屬性
asp isrootfolder 屬性

isrootfolder 屬性返回指定的文件夾是否為根文件夾。如果是,返回 true,否則返回 false。
語(yǔ)法
folderobject.isrootfolder
實(shí)例
<%
dim fs,fo
set fs=server.createobject("scripting.filesystemobject")
set fo=fs.getfolder("c:\asp\test")
if fo.isrootfolder=true then
response.write("the folder is the root folder!")
else
response.write("the folder is not the root folder!")
end if
set fo=nothing
set fs=nothing
%>
輸出:
the folder is not the root folder!
dim fs,fo
set fs=server.createobject("scripting.filesystemobject")
set fo=fs.getfolder("c:\asp\test")
if fo.isrootfolder=true then
response.write("the folder is the root folder!")
else
response.write("the folder is not the root folder!")
end if
set fo=nothing
set fs=nothing
%>
輸出:
the folder is not the root folder!

相關(guān)文章
- ASP Request 對(duì)象
- ASP Folder 對(duì)象
- ASP Browser Capabilities
- ASP 總結(jié)
- ASP DateCreated 屬性
- ASP ShortPath 屬性
- ASP Copy 方法
- ASP Items 方法
- ASP RemoveAll 方法
- ASP BinaryWrite 方法
- ASP Form 集合
- ASP Contents 集合
- ASP ScriptTimeout 屬性
- ASP MapPath 方法
- ASP BuildPath 方法
- ASP DeleteFile 方法
- ASP FolderExists 方法
- ASP GetBaseName 方法
- ASP GetSpecialFolder 方法
- ASP GetTempName 方法