ASP Type အခြေအနေ

အသုံးပြုနည်း နှင့် အသုံးပြုခြင်း

Type အခြေအနေ သုံးစွဲသည် သတ်မှတ်ထားသော ဖြင့်ဖြတ်ပြီ သို့မဟုတ် ဖြင့်ဖြတ်ပြီ အမျိုးအစား ကို တင်ပြသည်。

အက္ခရာ:

FileObject.Type
FolderObject.Type

File အပေါ်အချက်အလက် အစားအသား

အစားအသား 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

Folder အပေါ်အချက်အလက် အစားအသား

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

ထုတ်ပြန်

The folder test is of type: File Folder