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

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

ParentFolder ਪ੍ਰਤੀਯੋਗਿਤਾ ਵਿਸ਼ੇਸ਼ ਫਾਇਲ ਜਾਂ ਫੋਲਡਰ ਦੇ ਮਾਤਾ ਫੋਲਡਰ ਲਈ folder ਆਬਜੈਕਟ ਵਾਪਸ ਦਿੰਦੀ ਹੈ。

ਸਫ਼ਟਿਕਰਨ:

FileObject.ParentFolder
FolderObject.ParentFolder

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

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\asp\test.asp")
Response.Write("The file test.asp is in the folder: ")
ریسپونس ورائٹ(}}f.ParentFolder)
set f=nothing
سٹ فس نو نینگ
%>

آؤٹ پُٹ:

The file test.asp is in the folder: C:\asp

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

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\asp\test")
Response.Write(ਫੋਲਡਰ ਟੈਸਟ ਫੋਲਡਰ: )
ریسپونس ورائٹ(}}فو پارنٹ فولڈر)
سٹ فو نینگ
سٹ فس نو نینگ
%>

آؤٹ پُٹ:

فولڈر ٹیسٹ فولڈر: C:\asp میں ہے