精品熟女碰碰人人a久久,多姿,欧美欧美a v日韩中文字幕,日本福利片秋霞国产午夜,欧美成人禁片在线观看

ASP Type 屬性

asp type 屬性

file 對象參考手冊 完整的 file 對象參考手冊

type 屬性用于返回指定文件或文件夾的類型。

語法

fileobject.type

folderobject.type

針對 file 對象的實例

<%
dim fs,f
set fs=server.createobject("scripting.filesystemobject")
set f=fs.getfile("c:\test.txt")
response.write("the file test.txt is of type: ")
response.write(f.type)
set f=nothing
set fs=nothing
%>

輸出:

the file test.txt is of type: text document

<%
dim fs,f
set fs=server.createobject("scripting.filesystemobject")
set f=fs.getfile("c:\test.asp")
response.write("the file test.asp is of type: ")
response.write(f.type)
set f=nothing
set fs=nothing
%>

輸出:

the file test.asp is of type: active server document

針對 folder 對象的實例

<%
dim fs,fo
set fs=server.createobject("scripting.filesystemobject")
set fo=fs.getfolder("c:\test")
response.write("the folder test is of type: ")
response.write(fo.type)
set fo=nothing
set fs=nothing
%>

輸出:

the folder test is of type: file folder

file 對象參考手冊 完整的 file 對象參考手冊
相關文章