tutorial pengembangan web terbaru
 

ASP Cara GetFile


<Object Reference FileSystemObject Lengkap

Metode GetFile mengembalikan objek File untuk jalan yang ditentukan.

Sintaksis

FileSystemObject.GetFile(path)

Parameter Deskripsi
path Wajib. Path untuk file tertentu

Contoh

<%
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

<Object Reference FileSystemObject Lengkap