Attributes ຄຸນສົມບັດ ASP
ການກໍານົດແລະການນໍາໃຊ້
Attributes ຄຸນສົມບັດສາມາດນຳໃຊ້ເພື່ອການຕັ້ງຕັດຫຼືການການຄົ້ນຫາຄຸນສົມບັດບັນທຶກຫຼືສະຖານະການ
ຂອດອກການນຳໃຊ້:
FileObject.Attributes[=newattributes] FolderObject.Attributes[=newattributes]
ສະເພາະ | ອະທິບາຍ |
---|---|
newattributes |
ຄວາມອາດເບິ່ງ. ກຳນົດຄຸນສົມບັດບັນທຶກຫຼືສະຖານະການ ກໍ່ໄດ້ໃຊ້ຄູ່ມັນຄືກັນຫຼືການປະສົມຄູ່ມັນຂອງຄືກັນ
|
ບົດສະຫຼຸບ
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\test.txt") ການຂຽນຄຳສັ່ງ: "The attributes of the file are: " Response.Write("}}")f.Attributes) set f=nothing set fs=nothing %>
Output:
The attributes of the file are: 32