I just found a nice snippet for finding the creation date of a file, but I added some extra code to it to find and extract the referrer filename (which is then passed to the creation date snippet).
The thing I am trying to do with this is (from a contact form) take the referral window.document's URL (substring of the page's filename + extension)
Then pass this to the getFile method of the new ActiveXObject object.
However, I am getting a Microsoft Runtime Error:
Microsoft JScript runtime error '800a1391'
var whatIssue, lastFslash, theFile, myObject, f, date, postDateSub;
whatIssue = document.referrer;
lastFslash = whatIssue.lastIndexOf("/");
theFile = whatIssue.substring(lastFslash +1, whatIssue.length);
myObject = new ActiveXObject("Scripting.FileSystemObject");
f = myObject.GetFile("c:\\test.txt");
date = f.DateCreated;