ASP GetFile ਮੱਥਦਾ

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

GetFile ਮੱਥਦਾ ਕਿਸੇ ਵੀ ਪਾਥ ਦਾ File ਆਬਜੈਕਟ ਵਾਪਸ ਦਿੰਦਾ ਹੈ。

ਗਿਆਨ ਸ਼ਬਦ:

FileSystemObject.GetFile(path)
ਪੈਰਾਮੀਟਰ ਵਰਣਨ
path ਲਾਜ਼ਮੀ ਹੈ। ਕੁਝ ਵਿਸ਼ੇਸ਼ ਫਾਈਲ ਦੀ ਸਥਿਤੀ ਨੂੰ ਦਿਸਾਉਣ ਵਾਲਾ ਪਾਥ

ਇੱਕ ਉਦਾਹਰਣ

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\test\test.htm")
Response.Write("ਫਾਈਲ ਦੀ ਆਖਰੀ ਸੋਧ: ")
ریسپونس. وریٹ(ف. ڈیٹالاسٹ ایمدیفائز)
set f=nothing
set fs=nothing
%>

خروج:

فائل آخری تبدیلی 01/01/20 4:23:56 صبح میں ہوئی