I'm trying to get my html mail form which is (housed inside of an .asp file) to display the date of the referring document.
Here is what I have used in the body.
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.GetFile(Server.MapPath("\") & "\default.asp")
Response.Write ("DateCreated: " & a.DateCreated & "<BR>")
Set fileObject = Nothing
Set fso = Nothing
var myObject, f, date;
myObject = new ActiveXObject("Scripting.FileSystemObject");
f = myObject.GetFile("http://somesite.com/test.txt");
date = f.DateCreated;
alert ("The date this file was created is: " + date);
I'm also confused as to why the ASP is throwing an error. I don't know too much about it, but I'm pretty sure a line terminator ( is not needed where the variable name is.
Any clarity will be appreciated.