Metoda ASP GetFile


❮ Kompletní reference objektu FileSystemObject

Metoda GetFile vrací objekt File pro zadanou cestu.

Syntax

FileSystemObject.GetFile(path)

Parameter Description
path Required. The path to a specific file

Příklad

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\test\test.htm")
Response.Write("The file was last modified on: ")
Response.Write(f.DateLastModified)
set f=nothing
set fs=nothing
%>

Output:

The file was last modified on 01/01/20 4:23:56 AM

❮ Kompletní reference objektu FileSystemObject