ASP Attributes 속성
정의와 사용법
Attributes 속성은 지정된 파일이나 폴더의 속성을 설정하거나 반환할 수 있습니다.
문법:
FileObject.Attributes[=newattributes] FolderObject.Attributes[=newattributes]
파라미터 | 설명 |
---|---|
newattributes |
선택 사항. 파일이나 폴더의 속성 값을 지정합니다. 다음의 값 중 하나 또는 그 组합을 사용하십시오:
|
实例
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\test.txt") Response.Write("The attributes of the file are: ") Response.Write("}}")f.Attributes) f=nothing 설정 fs=nothing 설정 %>
출력:
파일의 속성은: 32