एएसपी गुण संपत्ति
❮ पूर्ण फ़ोल्डर वस्तु संदर्भ
विशेषता गुण का उपयोग किसी निर्दिष्ट फ़ाइल या फ़ोल्डर की विशेषता या विशेषताओं को सेट या वापस करने के लिए किया जाता है।
वाक्य - विन्यास
FileObject.Attributes[=newattributes]
FolderObject.Attributes[=newattributes]
Parameter | Description |
---|---|
newattributes | Optional. Specifies the attribute value for the
file or folder. Can take any of the following values or a combination of the following values: 0 = Normal file |
फ़ाइल वस्तु के लिए उदाहरण
<%
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)
set f=nothing
set fs=nothing
%>
Output:
The attributes of the file are: 32
फ़ोल्डर वस्तु के लिए उदाहरण
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
Response.Write("The attributes of the folder are: ")
Response.Write(fo.Attributes)
set fo=nothing
set fs=nothing
%>
Output:
The attributes of the folder are: 16
❮ पूर्ण फ़ोल्डर वस्तु संदर्भ