返回指定文件的属性

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

dim fs,f

set fs=Server.CreateObject("Scripting.FileSystemObject")

set f=fs.GetFile(Server.MapPath("testread.txt"))

Response.Write("The attributes of the file testread.txt are: " & f.Attributes)

set f=nothing

set fs=nothing

%>

 

</body>

</html>

结果:

The attributes of the file testread.txt are: 32

相关文章