programming-examples/asp/More_Code_Snippets/This shows how to get various details of a file.asp

16 lines
375 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
Dim strPath
strPath = Server.MapPath("index.php")
Dim objFSO , objFile
set objFSO = CreateObject("Scripting.FileSystemObject")
set objFile = objFSO.GetFile(strPath)
%>
File size is <%= objFile.Size %> bytes
<br>
File type is <%= objFile.Type %>
<br>
File last modified on <%= objFile.DateLastModified %>
<br>
File name is <%= objFile.Name %>