ASP Path ਪ੍ਰਤੀਯੋਗਿਤਾ
ਪਰਿਭਾਸ਼ਾ ਅਤੇ ਵਰਤੋਂ
Path ਪ੍ਰਤੀਯੋਗਿਤਾ ਵਿਸ਼ੇਸ਼ ਟਰਾਂਸਪੋਰਟਰ ਲਈ ਪਾਥ ਦੇਣ ਵਾਸਤੇ ਵਰਤੀ ਜਾਂਦੀ ਹੈ。
ਸਫ਼ਟਿਕਰਣ:
DriveObject.Path FileObject.Path FolderObject.Path
ਡਰਾਈਵ ਆਬਜੈਕਟ ਦੇ ਉਦਾਹਰਣ ਲਈ
<% dim fs,d set fs=Server.CreateObject("Scripting.FileSystemObject") set d=fs.GetDrive("e:") Response.Write("The path is " & d.Path) set d=nothing فارم سٹ فس نو نائٹنگ %>
خروج:
ਪਾਥ ਹੈ: E:
ਫਾਇਲ ਆਬਜੈਕਟ ਦੇ ਉਦਾਹਰਣ ਲਈ
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\asp\test.asp") ریسپانس وریٹ("پتھ ہے: " & f.Path) set f=nothing فارم سٹ فس نو نائٹنگ %>
خروج:
ਪਾਥ ਹੈ: C:\asp\test.asp
ਫੋਲਡਰ ਆਬਜੈਕਟ ਦੇ ਉਦਾਹਰਣ ਲਈ
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") فارم سٹ فو فس گت فولڈر("c:\asp\test") ریسپانس وریٹ("پتھ ہے: " & فو پتھ) فارم سٹ فو نائٹنگ فارم سٹ فس نو نائٹنگ %>
خروج:
پتھ ہے: C:\asp\test