daveslater
asked on
FTP Date & Time a file was created
Hi Experts
We have a web site that downloads a file using FTP.
This file is updates on an Adcock basis.
Is there any way that webpage can pick up the date & time the file was created?
What I don not want to do is manually enterer the details each time the download is updated.
Regards
Dave
We have a web site that downloads a file using FTP.
This file is updates on an Adcock basis.
Is there any way that webpage can pick up the date & time the file was created?
What I don not want to do is manually enterer the details each time the download is updated.
Regards
Dave
ASKER
Hi I am not that familiar with ASP or web pages
Can you please supply a bit of code that I can put into IE that will show the date & time of a file created as “c:\temp\myfile.zip”
I know it is a bit cheeky but I do not have a clue where to start or how to evoke that ASP code :0
Dave
Can you please supply a bit of code that I can put into IE that will show the date & time of a file created as “c:\temp\myfile.zip”
I know it is a bit cheeky but I do not have a clue where to start or how to evoke that ASP code :0
Dave
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Copy the code above into notepad and save as "fileinfo.asp" or some other name.
Then put the asp file on the webserver and type in the adress.
Then put the asp file on the webserver and type in the adress.
ASKER
Hi
cheers
Thanks for the quick responce.
dave
cheers
Thanks for the quick responce.
dave
No problem m8.
Glad I could help :)
Glad I could help :)
Just about any attribute that is available by right mouse clicking on an item and displaying properties on a PC are available through the methods listed below:
<%
location = request.servervariables("a
set fso = createobject("scripting.fi
set file_attrib = fso.getfile(location)
%>
<b>Modified</b>
<br>
<%= file_attrib.datelastmodifi
<%= file_attrib.datelastmodifi
<br>
<%= datevalue(file_attrib.date
<%=datevalue(file_attrib.d
<br>
<b>Created</b>
<br>
<%= file_attrib.datecreated %>
<%= file_attrib.datecreated %>
<br>
<%= datevalue(file_attrib.date
<%=datevalue(file_attrib.d
<br>
<b>Size</b>
<br>
<%= file_attrib.size %>
<%= file_attrib.size %> bytes
<br>
<%= file_attrib.size/1024 %>
<%= file_attrib.size/1024 %> kb
<br>
<b>Type</b>
<br>
<%= file_attrib.type %>
<%= file_attrib.type %>
<br>
<b>Name</b>
<br>
<%= file_attrib.name %>
<%= file_attrib.name %>