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("ఫైల్ యొక్క లక్షణాలు: ") Response.Write(f.Attributes) set f=nothing set fs=nothing %>
输出:
The attributes of the file are: 32