HI I need to read the date last modified of a file.
The file is NOT the web page with the VBScript in it , but an external .csv file used with Databinding at the same level as the web page reading its data.
I know the following VBSCRIPT is supposed to do that for me but i cannot get it to work. My file name is c.csv.
Set fso = CreateObject("Scripting.FileSystemObject"
Set f = fso.GetFile("YourFilename"
ModDate = f.DateLastModified
I have tried "c.csv", "\c.csv" and "\\c.csv" where it shows "YourFilename" but I cannot figure out how to get the value ModDate to display on the web page. Should I enclose it in a function ? If so how do I call that from HTML ?
Excuse the ignorance, but I have tried all over microsfts site but you never get a full working example.
I can get the following Javascript to give me the date of the web page in which it exists, but I want the same details of c.csv !!
<script language="Javascript">
var dateModified = document.lastModified;
mydate = dateModified.slice(0,9);
document.write("<b>Last updated: " + mydate + "</b>"
</script>
even a Javascript variant of this would be great.
Any ideas ??
Mac
The file is NOT the web page with the VBScript in it , but an external .csv file used with Databinding at the same level as the web page reading its data.
I know the following VBSCRIPT is supposed to do that for me but i cannot get it to work. My file name is c.csv.
Set fso = CreateObject("Scripting.FileSystemObject"
Set f = fso.GetFile("YourFilename"
ModDate = f.DateLastModified
I have tried "c.csv", "\c.csv" and "\\c.csv" where it shows "YourFilename" but I cannot figure out how to get the value ModDate to display on the web page. Should I enclose it in a function ? If so how do I call that from HTML ?
Excuse the ignorance, but I have tried all over microsfts site but you never get a full working example.
I can get the following Javascript to give me the date of the web page in which it exists, but I want the same details of c.csv !!
<script language="Javascript">
var dateModified = document.lastModified;
mydate = dateModified.slice(0,9);
document.write("<b>Last updated: " + mydate + "</b>"
</script>
even a Javascript variant of this would be great.
Any ideas ??
Mac