ASP Type Property
সংজ্ঞা ও ব্যবহার
Type বৈশিষ্ট্যটি বিশেষ ফাইল বা ফল্ডারের ধরন দেয়
গঠনশৈলী:
FileObject.Type FolderObject.Type
ফাইল অবজেক্টের জন্য উদাহরণ
উদাহরণ 1
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:test.txt") Response.Write("The file test.txt is of type: ") Response.Write("}}")f.Type) set f=nothing set fs=nothing %>
การปรากฏผล:
The file test.txt is of type: Text Document
উদাহরণ 2
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:test.asp") Response.Write("The file test.asp is of type: ") Response.Write("}}")f.Type) set f=nothing set fs=nothing %>
การปรากฏผล:
The file test.asp is of type: Active Server Document
ফল্ডার অবজেক্টের জন্য উদাহরণ
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("c:\test") Response.Write("ফল্ডার test এর ধরন: ") Response.Write("}}")fo.Type) set fo=nothing set fs=nothing %>
การปรากฏผล:
การทดสอบโฟลเดอร์เป็นชนิด: File Folder