ASP Attributes అట్రిబ్యూట్

నిర్వచనం మరియు ఉపయోగం

Attributes అట్రిబ్యూట్ సిఫార్సులను లేదా పొందడానికి ఉపయోగిస్తారు.

సింథాక్స్:

FileObject.Attributes[=newattributes] 
FolderObject.Attributes[=newattributes]
పారామీటర్ వివరణ
newattributes

ఆప్షనల్. ఫైల్ లేదా ఫోల్డర్ యొక్క లక్షణాల వివరణ నిర్దేశిస్తుంది.

కేవలం క్రింది విలువలలో ఒకటిని లేదా విలువల సంయోగాన్ని అంగీకరించండి:

  • 0 = కాన్వెన్షనల్ ఫైల్
  • 1 = రీడ్ లోన్లీ ఫైల్
  • 2 = హైడ్ ఫైల్
  • 4 = సిస్టమ్ ఫైల్
  • 16 = ఫోల్డర్ లేదా డైరెక్టరీ
  • 32 = గత బ్యాకప్ నుండి, ఫైల్ మారింది
  • 1024 = లింక్ లేదా షార్ట్కట్
  • 2048 = కంప్రెష్ ఫైల్

ఇన్స్టాన్స్

<%
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