Hi,
I need to display the file modified date & time of an Excel file in my HTML page. I take it the folowing code should do the trick however, I have no idea how to display this in a label, button or text box. Can anyone tell me if I am on the right track or not. Thanks :->
<script
function ShowFileAccessInfo(filespec)
{
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject"
f = fso.GetFile(filespec);
s = filespec.toUpperCase() + "<br>";
s += "Created: " + f.DateCreated + "<br>";
s += "Last Accessed: " + f.DateLastAccessed + "<br>";
s += "Last Modified: " + f.DateLastModified;
return(s);
}
</script>
I need to display the file modified date & time of an Excel file in my HTML page. I take it the folowing code should do the trick however, I have no idea how to display this in a label, button or text box. Can anyone tell me if I am on the right track or not. Thanks :->
<script
function ShowFileAccessInfo(filespec)
{
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject"
f = fso.GetFile(filespec);
s = filespec.toUpperCase() + "<br>";
s += "Created: " + f.DateCreated + "<br>";
s += "Last Accessed: " + f.DateLastAccessed + "<br>";
s += "Last Modified: " + f.DateLastModified;
return(s);
}
</script>