ASP Type ਪ੍ਰਤੀਯੋਗਿਤਾ

ਵਿਆਖਿਆ ਅਤੇ ਵਰਤੋਂ

Type ਪ੍ਰਤੀਯੋਗਿਤਾ ਪ੍ਰਤੀ ਵਿਸ਼ੇਸ਼ ਫਾਈਲ ਜਾਂ ਫੋਲਡਰ ਦੀ ਕਿਸਮ ਨੂੰ ਵਾਪਸ ਦਿੰਦੀ ਹੈ。

ਗਿਆਨ ਸਬੰਧੀ ਵਿਭਾਗ:

FileObject.Type
FolderObject.Type

ਫਾਈਲ ਆਬਜੈਕਟ ਦੇ ਉਦਾਹਰਣ ਲਈ

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:help.txt")
Response.Write("The file test.txt is of type: ")
ریسپونس.وایٹ(}})ف.Type)
سٹ ف = نا کوئی چیزی
سٹ ف ایس = نا کوئی چیزی
%>

نکال:

The file help.txt is of type: Text Document

ਫੋਲਡਰ ਆਬਜੈਕਟ ਦੇ ਉਦਾਹਰਣ ਲਈ

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:help.asp")
Response.Write("ਫਾਈਲ test.asp ਦੀ ਕਿਸਮ: ")
ریسپونس.وایٹ(}})ف.Type)
سٹ ف = نا کوئی چیزی
سٹ ف ایس = نا کوئی چیزی
%>

نکال:

فائل ہیلپ اے اس پی کا نوعیت: ایکتیو سرور ڈاکومنٹ