ویژگی 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") Response.Write("The attributes of the file are: ") Response.Write("}}")f.Attributes) set f=nothing set fs=nothing %>
خروجی:
ویژگیهای فایل: 32